Browse Source

profiler: fixed readme

tags/v0.6.0-beta
zhangyunshu 5 years ago
parent
commit
d56566e50b
6 changed files with 12 additions and 1 deletions
  1. +12
    -1
      mindinsight/profiler/README.md
  2. BIN
      mindinsight/profiler/images/data_op_profile.png
  3. BIN
      mindinsight/profiler/images/minddata_profile.png
  4. BIN
      mindinsight/profiler/images/performance_overall.png
  5. BIN
      mindinsight/profiler/images/step_trace.png
  6. BIN
      mindinsight/profiler/images/timeline.png

+ 12
- 1
mindinsight/profiler/README.md View File

@@ -65,7 +65,7 @@ Figure 2 displays the Step Trace page. The Step Trace detail will show the start
can also choose a specific step to see its step trace statistics. The graphs at the bottom of the page show how the execution time of Step Gap, Forward/Backward Propagation and can also choose a specific step to see its step trace statistics. The graphs at the bottom of the page show how the execution time of Step Gap, Forward/Backward Propagation and
Step Tail changes according to different steps, it will help to decide whether we can optimize the performance of some stages. Step Tail changes according to different steps, it will help to decide whether we can optimize the performance of some stages.


*Notice:* MindSpore choose the Foward Start/Backward End Operators automatically, The names of the two operators are shown on the page. Profiler do not guarantee that the two operators are
*Notice:* MindSpore choose the Forward Start/Backward End Operators automatically, The names of the two operators are shown on the page. Profiler do not guarantee that the two operators are
always chosen as the user's expectation. Users can choose the two operators according to the execution graph, and specify the them manually by setting the `FP_POINT` and `BP_POINT` environment variables. always chosen as the user's expectation. Users can choose the two operators according to the execution graph, and specify the them manually by setting the `FP_POINT` and `BP_POINT` environment variables.
For example: `export FP_POINT=fp32_vars/conv2d/conv2Dfp32_vars/BatchNorm/FusedBatchNorm_Reduce` and `export BP_POINT=loss_scale/gradients/AddN_70`. For example: `export FP_POINT=fp32_vars/conv2d/conv2Dfp32_vars/BatchNorm/FusedBatchNorm_Reduce` and `export BP_POINT=loss_scale/gradients/AddN_70`.


@@ -138,6 +138,17 @@ The Timeline component can display:
- The MindSpore stream split strategy for this neural network; - The MindSpore stream split strategy for this neural network;
- The time of tasks executed on the device. - The time of tasks executed on the device.


How to view the timeline:

To view the detailed information of the timeline, you can click the "Download" button to save the file with the timeline information locally, and then view it through the tool.

We recommend you to use Google plugin: chrome://tracing, or Perfetto tool: https://ui.perfetto.dev/#!viewer.

- Select one of the tools mentioned above, enter the address in the browser and press Enter;
- After entered the page, click the button to load the file to view the timeline.
- For chrome tracing, using "load" button in the upper left corner.
- For Perfetto, using "Open trace file" in the left column.

Users can get the most detailed information from the Timeline: Users can get the most detailed information from the Timeline:


- From high level, users can analyse whether the stream split strategy can be optimized and whether the step tail is too long; - From high level, users can analyse whether the stream split strategy can be optimized and whether the step tail is too long;


BIN
mindinsight/profiler/images/data_op_profile.png View File

Before After
Width: 1919  |  Height: 939  |  Size: 81 kB Width: 1392  |  Height: 787  |  Size: 58 kB

BIN
mindinsight/profiler/images/minddata_profile.png View File

Before After
Width: 1839  |  Height: 840  |  Size: 86 kB Width: 1868  |  Height: 825  |  Size: 110 kB

BIN
mindinsight/profiler/images/performance_overall.png View File

Before After
Width: 3840  |  Height: 2160  |  Size: 924 kB Width: 1901  |  Height: 919  |  Size: 90 kB

BIN
mindinsight/profiler/images/step_trace.png View File

Before After
Width: 3840  |  Height: 2160  |  Size: 570 kB Width: 1878  |  Height: 910  |  Size: 96 kB

BIN
mindinsight/profiler/images/timeline.png View File

Before After
Width: 1915  |  Height: 937  |  Size: 122 kB Width: 1925  |  Height: 751  |  Size: 51 kB

Loading…
Cancel
Save