Parsing and Exporting Profile Data
The following uses the msprof command line as an example to describe how to parse and export profile data:
- Switch to the path where the parsing tool is located.
1cd ${INSTALL_DIR}/tools/profiler/bin
Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
- Run the following command to parse the profile data file:
./msprof --parse=on --output=/home/test/profiling_output
--output indicates the path for storing the profile data file set during profile data collection.
- Export the profile data.
./msprof --export=on --output=/home/test/profiling_output
For details about the Profiling tool, see Profiling Instructions.
Parent topic: Profile Data Collection and Analysis