Dynatrace offers the following capabilities that allow you to perform enhanced code-level CPU analysis:
To perform code-level CPU analysis:
To analyze a process group, remove the filters.
The color coding of the pie chart, the area chart, and the bars in the code-level stack facilitate code-level diagnostics.
To access the breakdown of processes, select the Top APIs tab. You can configure the list of APIs.
To view the forward stack trace, select the Call hierarchy tab. Each listed method is tagged with the name and color of the API.
Select the Hotspots tab to view the top three hotspots with reverse stack traces.
When you filter the execution times and top APIs, the Call hierarchy and Hotspots views inherit the defined filters.
In the following example, filtering by code execution and Built-In JRE (by selecting Code execution under the Execution time tab and selecting Built-In JRE under the Top APIs tab) reveals in the Hotspots tab that most of the built-in JRE API execution time is within the ConcurrentLinkedQueue.iterator
call. When you open the stack frames, you can identify the culprit.
Ensure you have the View sensitive request data permission in your environment.
Downloading the code is supported for Java, .NET, and Node.js.
To download the code for an execution,
Go to Actions and select > Source code.
Choose the process from which you want to download the code.
Select Download for the execution you're interested in.
Open the source code.