Parsing and Exporting Profile Data

The following uses the msprof command line as an example to describe how to parse and export profile data:
  1. Switch to the path where the parsing tool is located.
    /home/HwHiAiUser/Ascend/ascend-toolkit/latest/tools/profiler/bin

    /home/HwHiAiUser/Ascend/ indicates the CANN installation path.

  2. Run the following command to parse the profile data file:
    ./msprof --parse=on --output=/home/HwHiAiUser/profiling_output

    --output indicates the path for storing the profile data file set during profile data collection.

  3. Export the profile data.
    ./msprof --export=on --output=/home/HwHiAiUser/profiling_output

    For details about the Profiling tool, see Performance Tuning Tool User Guide .