Java Call Stack and Flame Graph - Java Call Stack and Flame Graph - 57368

uProf User Guide

Document_ID
57368
Release_Date
2025-06-09
Revision
5.1 English
Note: For Java attach to process on Linux, pass the JVM option (-XX:+PreserveFramePointer ) while launching the target application to collect correct java app callstack using AMD uProf.

To collect call stack for profiling Java application:

$ ./AMDuProfCLI collect --config tbp -g -w <java-app-dir> <path-to-java-exe> <java-app-main>
Figure 1. Java Application - Flame Graph