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