diff options
Diffstat (limited to 'activesupport/lib/active_support/testing/performance')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/mri.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance/mri.rb b/activesupport/lib/active_support/testing/performance/mri.rb index 914e546090..859588c735 100644 --- a/activesupport/lib/active_support/testing/performance/mri.rb +++ b/activesupport/lib/active_support/testing/performance/mri.rb @@ -158,7 +158,7 @@ module ActiveSupport end end - class Objects < Base + class Objects < Amount Mode = RubyProf::ALLOCATIONS if RubyProf.const_defined?(:ALLOCATIONS) # Ruby 1.9 + GCdata patch @@ -175,7 +175,7 @@ module ActiveSupport end end - class GcRuns < Base + class GcRuns < Amount Mode = RubyProf::GC_RUNS if RubyProf.const_defined?(:GC_RUNS) # Ruby 1.9 @@ -192,7 +192,7 @@ module ActiveSupport end end - class GcTime < Base + class GcTime < Time Mode = RubyProf::GC_TIME if RubyProf.const_defined?(:GC_TIME) # Ruby 1.9 with GC::Profiler |