When the Java application is launched by AMD uProf, the tool can collect the profile data and attribute the samples to interpreted Java functions.
GUI
To launch the AMDuProf GUI, go to page.
- Click Profile an Application on the Welcome page.
- Provide application path, application options, working
directory, and environment variables, if any. Click Next. Use the following configuration:
- Application Path: <path to Java binary.>
- Application Options: <launch app arguments>
- Working Directory: <launch app path>
- From Predefined Configs, select Required Configuration.
- Set the timer interval and profiling signal.
- Only if using Linux: From Advanced Options, select the Callstack Collection and Callstack Unwind Depth.
- Click Start Profile to start the profiling.
CLI
To profile a Java application:
-
$ ./AMDuProfCLI collect --config tbp -w <java-app-dir> <path-to-java.exe> <java-app-main> - On A Linux platform Java callstack
collection:
$ ./AMDuProfCLI collect --config tbp –g -w <java-app-dir> <path-to-java.exe> <java-app-main>
To generate report:
$ ./AMDuProfCLI report --src-path <path-to-java-app-source-dir> -i <raw-data-file-path>
Note: Use absolute paths as arguments when running a Java
executable.