---
title: 解析并导出Profiling数据
description: "下面以msprof命令行方式进行数据解析与导出为例进行说明：1. 切换到解析工具所在路径。"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommercial/latest/migration/tfmigr1/tfmigr1_000062.html
sourcePath: /source/zh/TensorFlowCommercial/900/migration/tfmigr1/tfmigr1_000062.html
indexId: 53e251c9da0145b2dc8790c7055bfd5be6e4767876e0a82e1411942c9b26545073
---
# 解析并导出Profiling数据

下面以msprof命令行方式进行数据解析与导出为例进行说明：1. 切换到解析工具所在路径。
  1 cd ${INSTALL_DIR}/tools/profiler/bin

  其中${INSTALL_DIR}请替换为CANN软件安装后文件存储路径。以root用户安装为例，安装后文件默认存储路径为：/usr/local/Ascend/cann。

2. 执行如下命令完成对Profiling数据文件的解析。
  1 ./msprof --parse=on --output=/home/test/profiling_output

  其中“--output”为采集Profiling数据时设置的存储Profiling数据文件的路径。

3. 导出Profiling数据。
  1 ./msprof --export=on --output=/home/test/profiling_output

  说明：关于Profiling工具的更详细说明，可参见《性能调优工具(https://www.hiascend.com/document/detail/zh/canncommercial/900/devaids/Profiling/atlasprofiling_16_0144.html)》。
