- 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 - Get the pid of the running application using command in some other terminal.
Example:
$ps -u - Launch CLI with that process attach.
Example:
$<path>/AMDuProfCLI --config hotspots --timer-interval 10 -o ./ -p <pidOfTheTargetProcess>You can use the
-doption to set the duration for which profiling should be allowed. - Finally generate the report as usual and the generated report.csv will show top 10 (or as selected by provided option) hottest tasks.