aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-28 01:32:32 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-28 01:32:32 +0100
commite17f60879782b3b0d8a4bc2444e1d024c65ec59e (patch)
tree4a6efb62e35722896d180ceabfaa014ff4ba6b08 /activesupport
parentef988e12d8dc4fb82f46f953cac8ad64bbc08c8a (diff)
downloadrails-e17f60879782b3b0d8a4bc2444e1d024c65ec59e.tar.gz
rails-e17f60879782b3b0d8a4bc2444e1d024c65ec59e.tar.bz2
rails-e17f60879782b3b0d8a4bc2444e1d024c65ec59e.zip
warn the user about unsupported benchmarking metrics he might have asked for
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb3
1 files changed, 2 insertions, 1 deletions
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