Commit afdf6fc6 authored by Aman Gupta's avatar Aman Gupta

Merge pull request #15 from VivienBarousse/issue-14

Fix for issue 14: rbtrace ignores the value for --slow
parents 3f77dfc1 808db028
......@@ -1054,7 +1054,7 @@ EOS
else
tracer.add(methods) if methods.any?
if opts[:slow_given] || opts[:slowcpu_given]
tracer.watch(opts[:slowcpu] || opts[:slow], opts[:slowcpu_given])
tracer.watch(opts[:slowcpu_given] ? opts[:slowcpu] : opts[:slow], opts[:slowcpu_given])
tracer.add_slow(smethods) if smethods.any?
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment