Delayed Profiling

Function

You can set the --delay and --duration options to configure the delay time and duration for profiling. Dynamic Profiling is not supported in delayed profiling scenarios.

Command Example

Log in to the environment where the tool is installed as the running user and run the following command for profiling:

msprof [options] <app>

Delayed data collection is supported only when AI job runtime profile data collection is enabled, and it requires the passing of a user application. This option cannot be configured together with --dynamic. For details about the app parameters, see app Parameters. For details about the options parameters, see Table 1. The parameters in Profiling AI Tasks When They Are Running can also be used.

Command-line Options

Table 1 Options

Option

Optional/Required

Description

--delay

Optional

Profiling delay. The value range is [1, 4294967295], in seconds. The default value is 0. If the configured time exceeds the execution time of an AI job, the collection will not be started during the execution of the AI job.

--duration

Optional

Profiling duration. The value range is [1, 4294967295], in seconds. By default, this option is not set. That is, the profiling automatically starts and stops with the task execution. If the --delay option is set, the duration starts from the time when the delay ends.

Example

msprof --delay=3 --duration=3 /home/projects/MyApp/out/main