提交 0cef199c 编写于 作者: G Gonçalo Silva 提交者: wycats

check if the profiler patch is applied, otherwise GC::Profiler doesn't have the 'data' method

上级 c8019cd0
......@@ -261,7 +261,7 @@ def profile
protected
# Ruby 1.9 + extented GC profiler patch
if defined?(GC::Profiler)
if defined?(GC::Profiler) and GC::Profiler.respond_to?(:data)
def with_gc_stats
GC.start
GC.disable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册