I am not sure if Java VisualVM does not do this, or if I am not using the correct terminology, or seeing the menu option.
Say one has done a CPU profile of an app with 3 methods.
time 0001: method A called
time 0002: method B called
time 0004: method B exits
time 0005: method B called
time 0007: method B exits
time 0008: method A exits
time 0009: method C called
time 0010: method B called
time 0012: method B exits
time 0013: method C exits
The only view I can get to shows me:
method B duration 6
method A duration 2
method C duration 2
But one should be able to flip the perspective (and does this have a standard name?) to see:
method A duration 7
method B duration 6
method C duration 4
How can I get this second view of the CPU timing out of Java VisualVM? Am I not seeing the option, or is it not there?
I see this: Total method time in Java VisualVM
But I do not see anything in the Call Stack that is from any of my objects. Would I have to be comparing two snapshots? This is incredibly non-obvious....