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.
    1
    cd ${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.

  2. 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.

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

    For details about the Profiling tool, see Profiling Instructions.