Analyzing call tree
To analyze call tree:
-
Make sure that Call Tree page is opened showing a list of threads.
The total time of method invocation is shown at Time (ms) column for each thread.
-
Expand a thread node to see the methods call tree.
-
Search the method node that has relatively large value of self invocation time shown
at Self Time (ms) or Self Time (%) column.
The self invocation time means the invocation time without taking the invocation time
of callees into account.
To find such method that is likely bottleneck of perfornamce,
you may repeat expanding the method node that has relatively large value of
total invocation time shown at Time (ms) column.
-
Double-click the method node to check the code on Java editor. To improve the performance,
one direction is to reduce the self invocation time per invocation, and the other direction
is to reduce the invocation count. The invocation count is shown at Count column.
Note: If you select the method node and select the context menu Focus On '<method name>',
the selected method node becomes the root node and
Time (%) and Self Time (%) are re-calulated with only the focused method and its callees,
so that you can focus on the area of interest.
Note: When selecting multiple method nodes,
the sum of self invocation time of selected methods are shown at status line at bottom of Eclipse window.