View chain of calls and call stack statistics
You can view the chain of calls for transactions and methods. The chain of calls answers the question "Whom did I call?"
You can also view the call stack statistics for methods. Call stack statistics answer the question "Who called me?"
Chain of Calls window
Chain of call and call stack statistics data are shown in the measurements tree window. The title of the window changes depending on which kind of data you are viewing.
-
To set the point to which the measurements tree window relates, drag the orange time line to the desired spot.
-
To view transaction call chains, right-click a component and choose J2EE/.NET Diagnostics > Show Chain of Calls. The Chain of Calls window opens displaying the chain of calls from the parent transaction downwards.
-
To view method statistics, in the Chain of Calls window right-click a method and choose Show Method Chain of Calls or Show Method Call Stack Statistics.
You use the Chain of Calls window to view the components that the selected transaction or method called.
In the following figure, all the calls in the critical path of the Start server-side transaction are displayed.
Note: Each red node signifies the most time consuming child of its parent.
You use the Call Stack Statistics window to view which components called the selected component.
In the following figure, the FileServlet.service was called by Start (Server), which was called by Start (Client), and so on, down to the transaction at the bottom of the chain.
Icons in the Chain of Calls window
User interface elements are described below:
UI Element | Description |
---|---|
|
Switch to Method Chain of Calls. When the call stack statistics data is displayed, displays the method chain of calls data (only if the root is a method). |
|
Switch to Method Call Stack Statistics. When the method chain of calls data is displayed, displays the method call stack statistics data (only if the root is a method). |
|
Show Method Chain of Calls. Displays the Chain of Calls window. |
|
Show Method Call Stack Statistics. Displays the Call Stack Statistics window. |
|
Properties. Hides or displays the properties area (lower pane). |
|
Columns. Enables you to select the columns shown in the Calls window. To display additional fields, drag them to the desired location in the Calls window. To remove fields, drag them from the Calls window back to the Columns chooser. |
|
Expand All. Expands the entire tree. |
|
Collapse All. Collapses the entire tree. |
|
Expand Worst Path. Expands only the parts of the path on the critical path. |
Save to XML File |
Saves the tree data to an XML file. |
Method Properties |
Area. Displays the full properties of the selected method. |
SQL Query |
Displays the SQL query for the selected method. (For Database only.)The following columns are available in the Chain of Calls window: |
Columns in the Chain of Calls window
The following columns are available in the Chain of Calls window:
Column | Description |
---|---|
Measurement |
Name of the method, displayed as ComponentName:MethodName. In the case of a database call, query information is also displayed. The percent shown indicates the percentage of calls to this component from its parent. |
% of Root Method |
Percentage of the total time of the method from the total time of the root tree item. |
No of Calls |
Displays the amount of times this transaction or method was executed. |
Avg Response Time |
Response time is the time from the beginning of execution until the end. Average response time is the total response time divided by the number of divided by the number of instances of the method. |
STD Response Time |
The standard deviation of the response times. |
Min Response Time |
The minimum response time. |
Max Response Time |
The maximum response time. |
% of Caller |
Displays the percentage of method time in relation the parent method time. |
Total time |
Displays the total method execution time, including the child execution time. |
Columns in the Call Stack Statistics window
The following columns are available in the Call Stack Statistics window:
Column |
Description |
---|---|
Measurement |
Name of the method, displayed as ComponentName.MethodName. In the case of a database call, query information is also displayed. The percent shown indicates the percentage of calls to this component from its child. |
% of Root Method |
Percentage of the total time of the transaction (or method) from the total time of the root tree item. |
No. of Calls to Root |
Displays the amount of times this transaction or method was executed. |
Avg Time Spent in Root |
Time spent in root is the time that the sub-area spent in the root sub-area/area/transaction. Average Time Spent in Root time is the total time spent in the root divided by the number of instances of the method. |
STD Time Spent in Root |
The standard deviation of the durations of time spent in the root. |
Min Time Spent in Root |
The minimum time spent in the root. |
Max Time Spent in Root |
The maximum time spent in the root. |
% of Called |
Displays the percentage of method time in relation the child method time. |
Total Time Spent in Root |
Displays the total method execution time, including the child execution time. |