提交 3e4d0dae 编写于 作者: S Santiago Pastorino

Merge pull request #4195 from castlerock/remove_19_condition_for_GC_Profiler

GC::Profiler available in ruby19
......@@ -4,15 +4,12 @@ module Performance
module Metrics
class Base
protected
# Ruby 1.9 with GC::Profiler
if defined?(GC::Profiler)
def with_gc_stats
GC::Profiler.enable
GC.start
yield
ensure
GC::Profiler.disable
end
def with_gc_stats
GC::Profiler.enable
GC.start
yield
ensure
GC::Profiler.disable
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册