Viewing Method Sampling Analysis Results
Prerequisites
A sampling analysis task has been created and the analysis is complete.
Procedure
- In the Task/Report List area of the Java Profiler page, click the name of the analysis task under Sampling Profiling.
Click the CPU tab.
- Click the Method Sampling tab.View the method flame graphs and call trees. Java method sample is used as an example, as shown in Figure 1 and Figure 2.
- You can select one of the following options from the Graph Type drop-down box:
- Flame graph: displays the flame graph. When you hover the mouse pointer over a function block, the detailed information about the function is displayed.
The Y axis indicates the call stack. Each layer has a function. A deeper stack indicates a higher flame. The top is the function being executed, and its parent functions are below it. The X axis shows the number of samplings of each function. If a function occupies a wider area on the X axis, it is more frequently sampled and its execution time is longer. Note that the X axis does not represent time. Instead, it represents all call stacks arranged in alphabetical order.
- Call tree by thread: displays the logical process of each call stack in a tree structure and analyzes the call relationship and proportion of functions in the program.
- Flame graph: displays the flame graph. When you hover the mouse pointer over a function block, the detailed information about the function is displayed.
- You can choose Java method sample or Native method sample from the Sampling Data drop-down box.
- You can click
or
to expand or collapse the content.
- You can select one of the following options from the Graph Type drop-down box:
Parent topic: Viewing Analysis Results

