Example Steps to Attach Instrumented Process - Example Steps to Attach Instrumented Process - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English
  1. Run an application in one terminal or as demon with environment variable set AMDUPROF_INSTRUMENT_ENABLE=1. Example:
     $AMDUPROF_INSTRUMENT_ENABLE=1 python3 /TestProfileControlApi.py
  2. Get the pid of the running application using command in some other terminal. Example:
    $ps -u
  3. Launch CLI with that process attach. Example:
    $<path>/AMDuProfCLI --config hotspots --timer-interval 10 -o ./ -p <pidOfTheTargetProcess>

    You can use the -d option to set the duration for which profiling should be allowed.

  4. Finally generate the report as usual and the generated report.csv will show top 10 (or as selected by provided option) hottest tasks.