Invocation paths
The Invocations paths tab shows the methods that called the highlighted method.
If more than one method calls the highlighted method, a weight is shown in parentheses. For any method, the sum of the percentages of its calling methods is 100%. The following example shows that a method Util.constructString() is often called by another constructString() method (81.3% of samples). The Util.constructString() method is also called occasionally by processTraceBuffer() (18.7% of samples). The top-level constructString() node has two children.
- constructString
- constructString (81.3%)
- parseDataIntoTracepoint (63.3%)
- parseMessage (36.7%)
- processTraceBuffer (18.7%)
- constructString (81.3%)
In this case, you have two strategies for optimization. The first is to make the Util.constructString() method more efficient. The second is to reduce how often it is called. Reducing how often processTraceBuffer() calls constructString() makes less difference than halving how often constructString() calls Util.constructString().