Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix calls count probrem - I want to use profile.rb #1
I want to use profile.rb.
When executed with such sample code
require 'profile' def slow_method 5000.times do 9999999999999999*999999999 end end def fast_method 5000.times do 9999999999999999+999999999 end end slow_method fast_method
Output this result.
I removed :b_call and :b_return event hook.
By this change, we can prevent the user from being confused by seeing the
The reason why the number of calls is output as 5001 in reported sample is:
In the following example,