Profile Data File Slicing
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
Atlas 350 Accelerator Card |
√ |
Function
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.
File Format
You can use the msprof_slice.json file to configure data file slicing attributes. The content of msprof_slice.json is as follows:
1 2 3 4 5 | { "slice_switch": "off", "slice_file_size(MB)": 0, "strategy": 0 } |
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 CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
Parameters
Parameter |
Description |
|---|---|
slice_switch |
Slicing switch. Possible values are as follows:
The system limits a sliced file to 20 GB. Files larger than this size will fail to export when slicing is enabled. Slicing cannot be triggered for files smaller than 200 MB even slicing is enabled. Data slicing is disabled by default. Enable it on by setting the parameter to on in the msprof_slice.json file. Any other value will revert to the default setting. 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 sliced file is in the format of _{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 as follows:
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. |