I have a long operation that I want to profile in JProfiler (or other suggestions), but the method is very recursive, so the tree view in CPU View doesn't help very much. It shows me CPU times like this:
beginOperation 100%
|- recursiveMethod 99%
| | - recursiveMethod 98%
| | | - recursiveMethod 97%
| | | | - ...more recursion
| | |- otherMethods 1%
| | - otherMethod 1%
| - otherMethods 1%
You see, the recursiveMethod
really doesn't take any time at all. Rather, its the otherMethods
that take up time, and are the ones I want to profile. My ideal view would show recursiveMethod
having next to 0% time, and the otherMethods
combining to near 100%.
So is there any way in JProfiler to roll this view up so that I can view where my CPU time is being spent more clearly? Does anyone have a suggestion for another profiler that can do this?
Note: I am using JProfiler 6, but could potentially upgrade if another version could do this.
Thanks!