Parsing
- During data profiling, the flushed files are locked. Parsing can be started only after the profiling is complete; otherwise, the error message "db is lock" will be displayed.
- Do not enable dynamic profiling again before data parsing is complete, as this may deteriorate profiling performance.
Basic Parsing
Example of the parsing command:
python3 -m ms_service_profiler.parse --input-path ${PATH}/prof_dir/
Option |
Description |
Required (Yes/No) |
|---|---|---|
--input-path |
Path to profile data. All databases named msproftx.db, ascend_service_profiler_*.db, and ms_service_*.db in the path will be read. |
Yes |
--output-path |
Output path for parsed files. It defaults to the output directory in the current path. |
No |
--log-level |
Log level. The options are as follows:
|
No |
--format |
Format of the exported profile data file. The options are as follows:
If this parameter is not specified, all result files are exported by default. You can specify one or more formats. For example, --format db or --format db csv. NOTE:
If acl_task_time is set to 2 during data profiling, the parsing result files can be exported only in .json or .db format. |
No |
In addition to basic parsing, you can perform multi-dimensional parsing on profile data from different dimensions (request-level, batch-level, or service-level). You can also perform fine-grained performance breakdown on data of different batches.