diff options
Diffstat (limited to 'activesupport/lib/active_support/testing/performance.rb')
-rw-r--r-- | activesupport/lib/active_support/testing/performance.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index f0287b0440..02c19448fd 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -90,6 +90,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 @@ -256,9 +258,7 @@ module ActiveSupport @name ||= self.class.name.demodulize.underscore end - def benchmark - @unsureturn if measure.nil? - + def benchmark with_gc_stats do before = measure yield |