merge recursive calls in time tree
I'm running Sysprof 46.0.
Suppose that I profile a program with a function foo() that calls itself recursively, and also sometimes calls bar(). When I view the call tree in Sysprof, I'll see many nested invocations of foo(), each of which will have its own call to bar():
foo
foo
foo
foo
...
bar
bar
bar
That's hard to read and interpret. Instead, it would be nice if Sysprof (perhaps optionally) merged all these recursive calls, so that the output would contain just a single invocation of foo() with a single call to bar() inside that. This would be the same output that would result if foo() were written using an interative loop rather than with recursion.
This would be especially helpful for profiling programs written in functional languages, which recurse a lot. :)