To reparse the profile data collected by the MindSpore Profiler APIs, you can use the mindspore.profiler.profiler.analyse API for offline parsing.
For details about the API, see mindspore.profiler.profiler.analyse.
1 2 3 | from mindspore.profiler.profiler import analyse analyse("./profiler_data_path") # './profiler_data_path' indicates the offline data parsing path. |
python3 {file_name}.py
For details about profile data result files, see MindSpore & PyTorch Profile Data File References.
For details about how to visualize and analyze the parsed profile data files, see MindStudio Insight User Guide.
You can use the msprof-analyze to analyze the profile data.