# Copyright (c) 2021-2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module: name: aspt_converter namespace: ark::tooling::sampler options: - name: input type: std::string default: "" description: Path to input aspt file - name: output type: std::string default: "" description: Path to ouput csv file. In dump-modules mode - path to output txt file - name: csv-tid-separation type: std::string default: single-csv-multi-tid possible_values: - single-csv-single-tid - single-csv-multi-tid - multi-csv description: Separates threads into single or multuple csv files. - name: cold-graph-enable type: bool default: false description: Builds cold flame graph - name: substitute-module-dir type: bool default: false description: Enable substitution of panda files directories e.g. run converter on host for .aspt got from device - name: substitute-source-str type: arg_list_t default: [] description: Substrings that will be replaced with substitute-destination delimiter: ',' - name: substitute-destination-str type: arg_list_t default: [] description: Substrings that will be places instead of substitute-source delimiter: ',' - name: dump-modules type: bool default: false description: In this mode aspt_converter retrieves information from .aspt file about necessary modules paths on device and then dump this paths to outfile, that specified in --output