Querying Profile Data File Information
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
This function is used to query profile data file information. Confirm that the model ID and iteration ID are specified during export.
During profile data parsing, the profile data file information is automatically displayed on the screen. Therefore, this function is optional in data parsing and is mainly used to query information about profile data files in the historically parsed PROF_XXX directories.
Precautions
- Complete the operations in Before You Start first.
- The profiling has completed.
- Direct parsing on the device is not supported for the products below. You must copy the generated PROF_XXX directory to an environment where the Toolkit package is installed.
Ascend RC scenario of theAtlas 200I/500 A2 inference product
Command Format
msprof --query=on --output=<dir>
Parameters
Option |
Description |
Optional/Required |
|---|---|---|
--query |
Query of profile data file information. The value can be on or off (default).
After data parsing, you can use this option to query the basic information about profile data files. |
Required |
--output |
Directory for storing parsed profile data files. The value must be the PROF_XXX directory or the parent directory of the PROF_XXX directory, for example, /home/profiler_data/PROF_XXX. The path cannot contain the following characters: "\n", "\\n", "\f", "\\f", "\r", "\\r", "\b", "\\b", "\t", "\\t", "\v", "\\v", "\u007F", "\\u007F", "\"", "\\\"", "'", "\'", "\\", "\\\\", "%", "\\%", ">", "\\>", "<", "\\<", "|", "\\|", "&", "\\&", "$", "\\$", ";", "\\;", "`", "\\`". |
Required |
Example
Set the directory for storing parsed profile data files to /home/profiler_data/PROF_XXX and enable the function of querying profile data files.
msprof --query=on --output=/home/profiler_data/PROF_XXX
Output Description
Table 2 describes the information obtained by the query function of the msprof tool.
Field |
Description |
|---|---|
Job Info |
Job name. |
Device ID |
Device ID. |
Dir Name |
Folder name. |
Collection Time |
Data collection time. |
Model ID |
Model ID. |
Iteration Number |
Total number of iterations. |
Top Time Iteration |
Top five iterations with the longest time consumptions. |
Rank ID |
Node ID in the cluster scenario. |