Permalink
Browse files

warn the user about unsupported benchmarking metrics he might have as…

…ked for
  • Loading branch information...
1 parent ef988e1 commit e17f60879782b3b0d8a4bc2444e1d024c65ec59e @goncalossilva goncalossilva committed Mar 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/lib/active_support/testing/performance.rb
@@ -12,7 +12,6 @@ module Performance
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 @@ def run(result)
if klass = Metrics[metric_name.to_sym]
run_profile(klass.new)
result.add_run
+ else
+ puts '%20s: unsupported' % metric_name
end
end
end

0 comments on commit e17f608

Please sign in to comment.