Querying Profile Data File Information
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 historical parsed PROF_XXX directories.
For the following products, profile data cannot be directly queried on devices. Instead, you need to copy the collected PROF_XXX directory to an environment where the Ascend-CANN-Toolkit is installed for data query.
Prerequisites
Ensure that operations in Before You Start have been completed.
The profile data has been collected.
Procedure
Run the following command:
Example:
msprof --query=on --output=<dir>
Option |
Description |
Required/Optional |
|---|---|---|
--query |
Query of profile data file information, either 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 parent directory of the PROF_XXX or PROF_XXX directory, for example, /home/HwHiAiUser/profiler_data/PROF_XXX. The following special characters are not allowed in the path: "\n", "\\n", "\f", "\\f", "\r", "\\r", "\b", "\\b", "\t", "\\t", "\v", "\\v", "\u007F", "\\u007F", "\"", "\\\"", "'", "\'", "\\", "\\\\", "%", "\\%", ">", "\\>", "<", "\\<", "|", "\\|", "&", "\\&", "$", "\\$", ";", "\\;", "`", "\\`". |
Required |
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. |