Merge pull request #4198 from castlerock/remove_GC_checks_for_ruby19

remove conditions for GC::Profiler in ruby19
This commit is contained in:
Santiago Pastorino 2011-12-27 04:39:22 -08:00
commit 01cde1da6c

@ -32,20 +32,14 @@ def measure
end
class GcRuns < Amount
# Ruby 1.9
if GC.respond_to?(:count)
def measure
GC.count
end
def measure
GC.count
end
end
class GcTime < Time
# Ruby 1.9 with GC::Profiler
if defined?(GC::Profiler) && GC::Profiler.respond_to?(:total_time)
def measure
GC::Profiler.total_time
end
def measure
GC::Profiler.total_time
end
end
end