Skip to content

Commit

Permalink
warn the user about unsupported benchmarking metrics he might have as…
Browse files Browse the repository at this point in the history
…ked for
  • Loading branch information
goncalossilva committed Mar 28, 2011
1 parent ef988e1 commit e17f608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activesupport/lib/active_support/testing/performance.rb
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e17f608

Please sign in to comment.