From 555c3b5abe9f8246ea0d5319f5b44db73324fabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Sat, 12 Jun 2010 11:50:40 +0100 Subject: ruby's GC doesn't support collections and heap_info, RubyProf can handle it --- activesupport/lib/active_support/testing/performance.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'activesupport') 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) -- cgit v1.2.3