visualvm
visualvm copied to clipboard
"Reverse Call" childrens "Total Time" is wrong
The "Total Time" in the "Reverse Call" View does show the "Self Time" instead of the "Total Time".
Happens for children in the View only, while the main nodes do show the correct "Total Time".
Since the Self Time is mostly 0 for every children that value is not helpfull for finding the most influencing Caller.
Please either fix the childrens value to show "Total Time" or add additional columns for "Self Time" and "Self Time (CPU)" in the Reverse Call. Workaround: order by Hits and use "Find in hotspots" for every children to get the Total Time.
Can you please provide the CPU snapshot or steps to reproduce?
I can see it on every sampling. For example you can download this, and concentrate on the "main" thread: https://bugs.eclipse.org/bugs/attachment.cgi?id=287188
expand "org.eclipse.swt.custom.StyledTextRenderer.getTextLayout" in Reverse calls
Above snapshot: GH-346-snapshot_console_logging.nps.zip
Not sure if this would be considered the same bug or not, but I have this same issue with snapshots generated by the "Sampler" feature (while it looks like the above snapshot probably came from the "Profiler"). The main difference is that the "Total Time" and "Total Time (CPU)" columns in the "Reverse Calls" section of the "Sampler" snapshot all simply report values of 0.0 ms for everything beyond the "root" level of the tree (as opposed to reporting non-zero, inaccurate values at some levels as shown in the above screenshot).
Would be great if these columns could display accurate values; not having that info can make certain classes of bottlenecks quite difficult to identify.