aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2010-06-12 11:50:40 +0100
committerwycats <wycats@gmail.com>2010-06-17 19:18:52 -0700
commit555c3b5abe9f8246ea0d5319f5b44db73324fabf (patch)
tree21d094a13d211e0c31c265ebc48a112e4499fb8a /activesupport
parent4813462eeaf172b6155cb61757da2b073e2ebb74 (diff)
downloadrails-555c3b5abe9f8246ea0d5319f5b44db73324fabf.tar.gz
rails-555c3b5abe9f8246ea0d5319f5b44db73324fabf.tar.bz2
rails-555c3b5abe9f8246ea0d5319f5b44db73324fabf.zip
ruby's GC doesn't support collections and heap_info, RubyProf can handle it
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 3aa7ae99fe..866326baff 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -378,14 +378,6 @@ begin
def measure
RubyProf.measure_gc_runs
end
- elsif GC.respond_to?(:collections)
- def measure
- GC.collections
- end
- elsif GC.respond_to?(:heap_info)
- def measure
- GC.heap_info['num_gc_passes']
- end
end
def format(measurement)