Profile Data File Slicing
For a parsed timeline data file in .json format, the system identifies the duration for opening it on the Google Chrome browser (chrome://tracing) and slices it into a proper number of slice files, so that you can quickly open it. The slicing operation automatically starts when the profile data is exported.
You can use the msprof_slice.json file to configure data file slicing attributes. The content and fields of msprof_slice.json are as follows.

The msprof_slice.json configuration file is stored in the following directory:
${INSTALL_DIR}/tools/profiler/profiler_tool/analysis/msconfig. Replace ${INSTALL_DIR} with the actual CANN component directory. If the Ascend-CANN-Toolkit package is installed as the root user, the CANN component directory is /usr/local/Ascend/ascend-toolkit/latest.
Parameter |
Description |
|---|---|
slice_switch |
Slicing switch. Possible values are:
By default, data slicing is enabled. To disable data slicing, edit the msprof_slice.json file and set this parameter to off. If this parameter is set to other values, the default value is used. By default, data slicing is performed when the duration of opening a timeline data file on the Google Chrome browser exceeds the upper limit. The slice file size is controlled by slice_file_size and the file quantity is controlled by strategy. The name of a slice file is in the format of module_name_{slice_n}_{timestamp}.json, where slice_n indicates the slice sequence number. For details about other fields, see General Description. |
slice_file_size(MB) |
Maximum size of a slice file. The unit is MB. The value is a positive integer greater than or equal to 200. By default, the size of a slice file is not limited. If this parameter is set to a positive integer greater than or equal to 200, the size of each slice file cannot exceed the value. If this parameter is set to other values, the size of each slice file is not limited, and the number of slice files is limited based on the value of strategy. |
strategy |
Slicing policy. Possible values are:
The duration required for opening a file is related to the computer performance. Therefore, the accurate duration cannot be provided. The following are references:
The actual duration depends on the device in use. |