Viewing the relevant code section of an instance
Viewing the code level of a transaction instance enables you to pinpoint the code behind the recorded instances. BMC Application Diagnostics drills down to the code section relevant to the instance. The code section contains data related to method execution, such as 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).
To view the code section of a transaction instance
- In the Captured Instances window, click a transaction name.
- In the Business Transaction Details window, click the Code Level tab.
The code section relevant to the instance is displayed.
The Details pane presents method parameters and details. For exceptions (errors), it displays the complete stack trace.
If the instance 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.
The following features are available when you view the code section of an instance:
Viewing modes
In the upper right of the Code Level tab, you can click the table view or tree view
buttons to switch the way the code is displayed:
Table view
Tree view
You can switch between the tree view of a transaction instance and the table view by double-clicking the code tree node. Double-click the method in table view, and the method opens in tree view, and vice versa.
In tree view, click the Collapse/Expand toggle button to expand and collapse the view:
To expand the view
To collapse the view
Filtering
In table view , you can display the data according to a string in the name or a value of deviation by using a filter.
- To filter according to matching string
From the list, select Matching or Not matching, and in the adjacent field, enter the 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 deviation
Select from the options available in the list (>, <, =), and enter a value.
Searching
In tree view , you can search for any string. The search results are displayed as highlighted 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 appear next to the search field.
Exporting to HTML
Use the Export to HTML button to export data to an HTML file. The HTML file contains the structure of the call tree and data on tree methods, including duration, exception stack trace, level in 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:
Example HTML file