From c1570b883e6cabab317f2907782d2a98013d7a65 Mon Sep 17 00:00:00 2001 From: Joel Nimety Date: Tue, 15 Feb 2011 14:21:33 -0500 Subject: [PATCH] GcTime incorrectly checks GC.respond_to?(:total_time), it should check GC::Profiler.respond_to?(:total_time) --- .../lib/active_support/testing/performance.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 64b436b..144f674 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -401,7 +401,7 @@ begin Mode = RubyProf::GC_TIME if RubyProf.const_defined?(:GC_TIME) # Ruby 1.9 with GC::Profiler - if GC.respond_to?(:total_time) + if GC::Profiler.respond_to?(:total_time) def measure GC::Profiler.total_time end -- 1.7.3.5