diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2010-06-12 12:01:29 +0100 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-06-17 19:18:53 -0700 |
commit | b169d8378725fc96eb904e5711e68307b0841e12 (patch) | |
tree | abe27b09240fa458333ca6e89d9ec1924d86e168 /activesupport/lib | |
parent | 5e5d1babb0ab381ad471228904262312aa1fc297 (diff) | |
download | rails-b169d8378725fc96eb904e5711e68307b0841e12.tar.gz rails-b169d8378725fc96eb904e5711e68307b0841e12.tar.bz2 rails-b169d8378725fc96eb904e5711e68307b0841e12.zip |
heap_live_objects+heap_free_objects is broken, use heap_total_objects instead
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/testing/performance.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 6b7954c5b9..9be156c45d 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -354,8 +354,7 @@ begin def measure GC.enable GC.start - last = GC::Profiler.data.last - count = last[:HEAP_LIVE_OBJECTS] + last[:HEAP_FREE_OBJECTS] + count = GC::Profiler.data.last[:HEAP_TOTAL_OBJECTS] GC.disable count end |