Parsing and Displaying Profile Data
The Import Result function parses and displays the raw profile data collected by Profiling in MindStudio. The configuration procedure is as follows:
- Choose from the menu bar. The system analysis project page is displayed.
- On the system analysis project page, click Import Result on the welcome page or the
icon in the upper left corner.Figure 1 Entries to Import Result
- In the Import Profile Data configuration page displayed, set the data source input path (profile data flush path configured in the training script), data output directory, and output project name.Figure 2 Import Profile Data configuration page
- Click OK to start execution.
- After the execution is successful, the Timeline View is automatically displayed, showing the AscendCL API calling and operator time consumption.
For details about the Timeline View page, see "Profiling > Profile Data Display > Timeline View" in the MindStudio User Guide.
Figure 3 Timeline view
If the size of the .json file exceeds the maximum cache for automatic result display of Import Result, the file may fail to be automatically displayed. In this case, manually open it.
Zoom in the view to check the time consumption of AscendCL APIs and operators. Switch to Statistics, select OP Info, and click Task Duration(us) to sort the operators. Then, find the operators with top time consumption and view and analyze their information.
Figure 4 Statistics tab page of Timeline View
Parent topic: Profiling (PyTorch Training)