Viewing a trace at the code level
Viewing the code level of a trace enables you to pinpoint the code behind the recorded instance. BMC Application Diagnostics drills down to the code of the trace. From the Code Level tab of the Trace Details window, you can see data related to request execution, such as the class and method name, return value, method arguments, method execution duration, a complete stack trace of exceptions, and technology-specific data (for example, SQL queries and HTTP request and response headers).
This topic presents the following procedures and feature descriptions:
To view the code section of a trace
- In the Traces window, click a trace name.
- In the Trace Details window, click the Code Level tab.
The code section that is relevant to the selected trace is displayed.
The Details pane presents method parameters and details. For exceptions (errors), the complete stack trace is displayed.
If the trace has exceptions, the Exceptions pane is displayed on the left side of the window. To jump to the code section where an exception occurred, select an item in the pane.
Requests Tree and Requests Table
You can view the trace requests in a tree or in a table. In the upper right of the Code Level area, click the to see the Requests Table or Requests Tree
.
Requests Tree
Click image to enlarge
Requests Table
Click image to enlarge
- Double-click a line item to switch between the tree and the table.
Methods with a yellow arrow are represented as a node in the Application Flow tab. A link appears in the details pain.
Click image to enlarge
Filtering
In the Request Table , you can filter requests according to a string in the name, or according to the request duration.
To filter according to a matching string
- From the Method Call column, select Matching or Not matching.
Enter all or part of a string.
You can use the following wildcards:
- * represents all single characters or any string.
- ? represents exactly one character.
Only the matching results are displayed.
To filter according to duration
- From the Duration column, select a symbol from the list (>, <, =).
- Enter a whole number.
Only the matching results are displayed.
Searching
In the Request Tree , search for a string by entering it in the search box, located at the upper right side of the tree.
The search results are displayed as bold text in the tree view and in the Details pane. If more than one match is found, you can view each matching result by using the Next and Previous arrows that are next to the search box.
Exporting to HTML
To export data to an HTML file, click Export to HTML. The HTML file contains the structure of the Request Tree and data on the methods, including duration, exception stack trace, level in the tree, and longest duration value.
Save the HTML file to any destination folder, and open and view the file in a stand-alone browser or any other viewing software.
Related topics
Viewing-the-application-flow-of-a-trace
Method-trimming-and-stack-traces-agent-for-Java