From e17f60879782b3b0d8a4bc2444e1d024c65ec59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Mon, 28 Mar 2011 01:32:32 +0100 Subject: warn the user about unsupported benchmarking metrics he might have asked for --- activesupport/lib/active_support/testing/performance.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index ec11c60534..6a0fc9af35 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -12,7 +12,6 @@ module ActiveSupport if ARGV.include?('--benchmark') # HAX for rake test { :benchmark => true, :runs => 4, - :metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time], :output => 'tmp/performance' } else { :benchmark => false, @@ -41,6 +40,8 @@ module ActiveSupport if klass = Metrics[metric_name.to_sym] run_profile(klass.new) result.add_run + else + puts '%20s: unsupported' % metric_name end end end -- cgit v1.2.3