Following table lists the profile commands
| Option | Description |
|---|---|
-h| --help
|
Displays the help information on the console/terminal. |
|
|
Base directory path in which the collected data files will be saved. A new sub- directory will be created in this directory. |
--config <config>
|
Predefined sampling configuration to be used to collect samples. Use the command |
|
|
A predefined event can directly be used with Alternatively, for providing more granular parameters, specify Timer, PMU, IBS event, or a predefined event with arguments in the form of comma separated key=value pairs. The supported keys are:
Note:
Argument details:
When these arguments are not passed, then the default values are:
|
-p | --pid <PID...>
|
Profile the existing processes by attaching to a running process. The process IDs are separated by comma. Note: A maximum of 512 processes can be
attached at a time.
|
-a| --system-wide
|
System Wide Profile (SWP) If this flag is not set, the command line tool will profile only the
launched application or the Process IDs attached with |
-c| --cpu <core...>
|
Comma separated list of CPUs to profile. The ranges of CPUs can be specified with ‘-’, for example, 0-3. This option is not supported with MPI profiling. Note: On Windows, the selected cores should
belong to only one processor group. For example, 0-63, 64-127,
and so on.
|
-d| --duration <n>
|
Profile only for the specified duration ‘n’ in seconds. |
--interval <num>
|
Sampling interval for the PMC events. Note: This interval will override the sampling
interval specified with individual events.
|
|
Set the core affinity of the launched application to be profiled. Comma separated list of core-ids. The ranges of the core-ids must be specified, for example, 0-3. The default affinity is all the available cores. This option is not supported while profiling MPI applications. |
--no-inherit
|
Do not profile the children of the launched application (processes launched by the profiled application). |
-b| --terminate
|
Terminate the launched application after the profile data collection ends. Only the launched application process will be killed. Its children (if any) may continue to execute. |
|
|
Collect the thread run time info to report thread concurrency. Thread concurrency provides how much time specific no of threads are running simultaneously. |
--start-delay <n>
|
Start delay n in seconds. Start profiling after the specified duration. When ‘n’ is 0, there is no impact. |
--start-paused
|
Profiling paused indefinitely. The target application resumes the profiling using the profile control APIs. This option must be used only when the launched application is instrumented to control the profile data collection using the resume and pause APIs (see AMDPowerProfileAPI Library for definitions). |
|
|
Specify the working directory. The default is the current working directory. |
--log-path <path-to-
logdir>
|
Specify the path where the log file should be created. If this option is
not provided, the log file will be created either in path set by
The log file name will be of the format
|
--enable-log
|
Enable additional logging with log file. |
--enable-logts
|
Capture the timestamp of the log records. It should be used with
|
--limit-size <n>
|
Use this option to stop the profiling once the collected data file size (in MBs) crosses the limit. This option will be deprecated in future releases. |
--frequency <n> | -- freq <n> |
-F <n>
|
Enable data collection at the specified frequency 'n' (in Hz) for Core PMC events. Note: This frequency will override the
sampling frequency specified with individual events.
|
--detail
|
Generate detailed report. |
--group-by <section>
|
Specify the report to be generated. The supported report options are:
This option is applicable only with the |
--cutoff <n>
|
Cut-off to limit the number of process, threads, modules, and
functions to be reported. ‘n’ is the minimum number of entries to be
reported in various report sections. The default value is 10. Note:
--cutoff 0 will report all the
data. |
--view <view-config>
|
Report only the events present in the given view file. Use the command
|
--inline
|
Show inline functions for C, C++ executables. Note:
|
--show-sys-src
|
Generate detailed function report of the system module functions (if
debug info is available) with the source statements. This option
only works with --detail option. |
|
|
Source file directories (semicolon separated paths). Multiple use of
|
--disasm
|
Report only the assembly instructions having samples. This option
only works with the --detail
option. |
--disasm-only
|
Generate the function report with only assembly instructions. |
--disasm-full
|
Report all the assembly instructions of a function with and without
samples. This option only works with the --detail option. |
|
|
Choose the syntax of assembly instructions. Supported options are
att or intel. If this option
is not used, the default style used is
intel. |
|
|
Specify the Timer, PMC, or IBS event on which the reported profile data will be sorted with arguments in the form of comma separated key=value pairs. The supported keys are:
If both event and metric are enabled, event will take priority over metric. Use the command Argument details are:
|
|
|
Use this option to configure the sample aggregation interval which is useful when the session gets imported to GUI.
Aggregation INTERVAL can also be specified as numeric value in milliseconds. |
|
|
Restricts report generation to the time interval between T1 and T2. Where, T1 and T2 are time in seconds from profile start time. |
--imix
|
Report Instruction Mix (only for native binaries). Default is module-wise IMIX. |
--imix-group-by <module | thread |
function>
|
IMIX report generation. Supported group-by options are:
|
--ignore-system-module
|
Ignore samples from system modules. |
--show-percentage
|
Show percentage of samples instead of actual samples. |
--show-sample-count
|
Show the number of samples. This option is enabled by default. |
--show-event-count
|
Show the number of events occurred. |
--show-all-cachelines
|
Show all cachelines in report sections for cache analysis. By default, only cachelines accessed by more than one process/thread are listed. Use this option for false cache sharing analysis. |
--limit-cacheinfo <n>
|
Show the shared cachelines accessed by more than one process/thread for cache analysis. Set 'n' to the number of shared cacheline addresses to be reported. Use this option for false cache sharing analysis. |
--bin-path <path>
|
Binaryfile path, multiple usage of --bin-path is
allowed. |
--src-path <path>
|
Source file path, multiple usage of --src-path
is allowed. |
|
|
Debug Symbol paths (semicolon separated). Multiple use of
--symbol-path is allowed. |
|
|
Write a report to a file. If the path has a .csv extension, it is assumed to be a file path and used as it is. If the .csv extension is not used, the path is assumed to be a directory and the report file is generated in the directory with the default name. |
--stdout
|
Print the report to a console or terminal. |
--retranslate
|
Perform the re-translation of collected data files with a different set of translation options. |
--asciievent-dump
|
Use this option to generate ASCII dump of IBS OP profile samples. Tip: This option might delay the
translation.
|
--no-report
|
Use this option to perform only collection and translation. |
--remove-raw-files
|
Removes the raw data files to reclaim the disk space. |
--python-show-all
|
Use this option to show python interpreter functions in the callgraph/flamegraph when translation is performed on python profiled data (on Linux). |
--export-session
|
Use this option to create a compressed archive of required session files which can be used in other system for analysis. |
--env-var
<key1=value1:key2=value2:...>
|
Use this option to set the environment variables. |
|
|
OS Support: Windows
Enables Callstack Sampling. Specify
the Unwind Interval (
|
--call-graph <F:N>
|
OS Support: Linux
Enables callstack sampling. Specify
(
When Note: Passing a
large
N value will generate a very large raw
data file.When |
-g
|
OS Support: Windows | Linux
Same as passing Same as passing |
--call-graph-mode <mode>
|
OS Support: Windows
Set callstack collection mode.
Default mode is fp. |
--call-graph-mode <fp|fpo| dwarf>
|
OS Support: Linux
Callstack collection mode. Default mode is fp.
|
--call-graph-type <scope type>
|
OS Support: Windows
Set callstack scope type. Scope type should contain one of these options:
Default scope type is |
--call-graph-interval <num>
|
OS Support: Windows
Set callstack unwind interval. Interval must be within the range [1 - 100]. Default interval is 1 ms. |
--call-graph-depth <num>
|
OS Support: Windows
Set callstack unwind depth. Depth must be within the range [2 - 392]. Default depth is 128. |
--call-graph-depth <num>
|
OS Support: Linux
Set callstack unwind depth. Depth must be within the range [2 - 1024]. Default depth is 32. This option is applicable for Hotspots and Threading configurations, for any other configurations this option will be ignored. |
--call-graph-size <size>
|
OS Support: Linux
Callstack Size. Default size is 1024 bytes. When mode = When |
--thread <thread=concurrency>
|
OS Support: Windows
Collects the runtime thread details. |
--tid <TID,..>
|
OS Support: Linux
Profile existing threads by attaching to a running thread. The thread IDs are separated by comma. |
-m| --data-buffer-count <size>
|
OS Support: Windows
Size (number of pages per core) of the buffer used for data collection by the driver. The default size is 512 pages per core. |
--symbol-server
<path1;...>
|
OS Support: Windows
Symbol Server directories (semicolon
separated paths). For example, Microsoft Symbol Server. Multiple
use of |
--symbol-cache-dir
<path>
|
OS Support: Windows
The path to store the symbol files downloaded from the Symbol Servers. |
--legacy-symbol-downloader
|
OS Support: Windows
Use this option to download symbols using the Microsoft Symsrv. By default, AMD symbol downloader will be used to download symbols. |
--limit-data <n>
|
OS Support: Windows
Use this option to stop the
profiling once the collected data file size (in MBs) crosses the
limit. When used with the |
--overwrite
|
OS Support: Windows
Specify the profile-data collection
mode as a ring buffer. Collection limit can be set using
|
--trace <TARGET>
|
OS Support: Linux
To trace a target domain. TARGET can be one or more of the following:
Note:
|
--openmp-impl <ompt| omplib>
|
OS Support: Linux
Provide OpenMP implementation type:
ompt.Note: Use this option with
--trace
openmp option. |
--openmp-scope <full| basic>
|
OS Support: Linux
Provide tracing scope:
Note: Use
this option with
--trace openmp
optionThis option is only applicable with
|
--osrt-event <event1,event2...>
|
OS Support: Linux
Provide event names. Use command info
Note: Use this option with
--trace osrt option. |
--osrt-threshold <event:threshold>
|
OS Support: Linux
Provide event name and threshold value. Note: Use this option with
--trace osrt option. |
--osrt-funcs
<module:function-pattern>
|
OS Support: Linux
Specify functions to trace from the library or executable.
|
--osrt-exclude-funcs
<module:function-pattern>
|
OS Support: Linux
Specify functions to exclude from the library or executable.
|
--osrt-func-size <size>
|
OS Support: Linux
Provide minimum function size to trace. Default function size is 128 bytes. This option
will be deprecated in a future release. Recommended to use
Note: Use this option with
--trace osrt
option. |
--func <module:function- pattern>
|
OS Support: Linux
Specify functions to trace from the library, executable, or kernel: function- pattern can be a function name or partial name ending with '*' or only '*' to trace all the functions of a module. Module can be a library or executable. To trace the kernel functions, replace the module with ‘kernel’. Note: It is
recommended to provide the absolute/full path of a
module.
|
--exclude-func
<module:function-pattern>
|
OS Support: Linux
Specify functions to exclude from the library, executable, or kernel:
Note: It is recommended to provide the
absolute path of a module
|
-m| --mmap-pages <size>
|
OS Support: Linux
Set the kernel memory mapped data buffer to size. The size can be specified in pages or with a suffix Bytes (B/b), Kilo bytes (K/k), Megabytes (M/m), and Gigabytes (G/g). |
--kvm-guest <pid>
|
OS Support: Linux
Specify the PID of qemu-kvm process to be profiled to collect guest-side performance profile. |
--guest-kallsyms
<path>
|
OS Support: Linux
Specify the path of guest /proc/kallsyms copied on the local host. AMD uProf reads it to get the guest kernel symbols. |
--guest-modules
<path>
|
OS Support: Linux
Specify the path of guest/proc/modules copied to the local host. AMD uProf reads it to get the guest kernel module information. |
--guest-search-path <path>
|
OS Support: Linux
Specify the path of guest vmlinux and kernel sources copied on the local host. AMD uProf reads it to resolve the guest kernel module information. |
--host <hostname>
|
OS Support: Linux
This option is used along with the
Note: If
--host is not
used, only the processes belonging to the system from which
report is generated is reported. In case, the system is a master
node in a cluster, the report will be generated for the
lexicographically first host in that cluster. |
--category <PROFILE>
|
OS Support: Linux
Generate report only for specific
profiling category. Comma separated multiple categories can be
specified. If this option is not used, the report for all
categories is generated. Multiple instances of
Supported
categories are:
Example:
|
--funccount-interval
<funccount-interval>
|
OS Support: Linux
Specify the time interval in seconds to list the function count detail report. If this option is not specified, function count will be generated for the entire profile duration. |
--branch-filter
|
OS Support: Linux
Use this option to capture LBR data. Specify the branch filter type:
When the above filters are not set, the default filter type
will be Note:
|
--vmlinux-path <path>
|
OS Support: Linux
Path to the Linux kernel debug info file. If no path provided, it searches for the debug info file in the default download path. |