pyroscope icon indicating copy to clipboard operation
pyroscope copied to clipboard

Total time is wrongly calculated with recursive functions.

Open abeaumont opened this issue 3 years ago • 0 comments

As it can be seen in the screenshot, the program runs for ~40s, but FibKt.main report 2x and FibKt.fib multiple times that:

kotlin

I suppose that the problem is that the Total is aggregating the total times of each function by name, without taking into account node connections in the tree: only the first appearance of the function in each of the tree branches should be counted.

abeaumont avatar Feb 25 '22 16:02 abeaumont