Actions
Bug #11581
closedprofiler extra method calls
Bug #11581:
profiler extra method calls
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Description
I was playing today with Ruby profiler and found something strange in my results. Let's take a sample code from docs:
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
Results of methods calls should look like:
But my results are:
And it doesn't seem to be proper. Those methods are called once, not 5001 times.
On 1.9.3 everything works fine. And it doesn't look it is a intentional change. But if yes, please enlighten me.
Thanks
robsdrops
Actions