/developtools/profiler/host/smartperf/trace_streamer/src/parser/bytrace_parser/ |
D | bytrace_event_parser.h | 49 using FuncCall = std::function<bool(const ArgsMap& args, const BytraceLine line)>; 50 bool SchedSwitchEvent(const ArgsMap& args, const BytraceLine& line) const; 51 bool TaskRenameEvent(const ArgsMap& args, const BytraceLine& line) const; 52 bool TaskNewtaskEvent(const ArgsMap& args, const BytraceLine& line) const; 53 bool TracingMarkWriteOrPrintEvent(const ArgsMap& args, const BytraceLine& line); 54 bool SchedWakeupEvent(const ArgsMap& args, const BytraceLine& line) const; 55 bool SchedWakingEvent(const ArgsMap& args, const BytraceLine& line) const; 56 bool CpuIdleEvent(const ArgsMap& args, const BytraceLine& line) const; 57 bool CpuFrequencyEvent(const ArgsMap& args, const BytraceLine& line) const; 58 bool CpuFrequencyLimitsEvent(const ArgsMap& args, const BytraceLine& line) const; [all …]
|
D | bytrace_event_parser.cpp | 118 bool BytraceEventParser::SchedSwitchEvent(const ArgsMap& args, const BytraceLine& line) const in SchedSwitchEvent() argument 120 if (args.empty() || args.size() < MIN_SCHED_SWITCH_ARGS_COUNT) { in SchedSwitchEvent() 125 auto prevCommStr = std::string_view(args.at("prev_comm")); in SchedSwitchEvent() 126 auto nextCommStr = std::string_view(args.at("next_comm")); in SchedSwitchEvent() 127 auto prevPrioValue = base::StrToInt32(args.at("prev_prio")); in SchedSwitchEvent() 128 auto nextPrioValue = base::StrToInt32(args.at("next_prio")); in SchedSwitchEvent() 129 auto prevPidValue = base::StrToUInt32(args.at("prev_pid")); in SchedSwitchEvent() 130 auto nextPidValue = base::StrToUInt32(args.at("next_pid")); in SchedSwitchEvent() 137 auto prevStateStr = args.at("prev_state"); in SchedSwitchEvent() 164 bool BytraceEventParser::TaskRenameEvent(const ArgsMap& args, const BytraceLine& line) const in TaskRenameEvent() argument [all …]
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | main.cpp | 47 bool ParseCommand(std::vector<std::string> args, HookData& hookData) in ParseCommand() argument 50 while (idx < args.size()) { in ParseCommand() 51 if (args[idx] == "-o") { in ParseCommand() 52 hookData.fileName = args[idx + 1].c_str(); in ParseCommand() 53 } else if (args[idx] == "-p") { in ParseCommand() 54 hookData.pid = std::stoi(args[idx + 1], nullptr); in ParseCommand() 55 if (std::to_string(hookData.pid) != args[idx + 1]) { in ParseCommand() 58 if (!ProcessExist(args[idx + 1])) { in ParseCommand() 62 } else if (args[idx] == "-n") { in ParseCommand() 63 hookData.processName = args[idx + 1]; in ParseCommand() [all …]
|
/developtools/hiperf/script/ |
D | record_control.py | 31 def check_args(args): argument 32 if (not args.package_name) and args.ability: 38 def get_module(args): argument 39 if args.prepare: 41 elif args.start: 43 elif args.pause: 45 elif args.resume: 47 elif args.stop: 134 args = parser.parse_args() 135 return args [all …]
|
D | command_script.py | 31 def check_args(args): argument 32 if (not args.package_name) and args.ability: 102 args = parser.parse_args() 103 return args 106 def main(args): argument 107 check_args(args) 108 profiler = PerformanceProfile(args)
|
D | hiperf_utils.py | 365 def __init__(self, args, control_module=""): argument 366 self.args = args 367 self.hdc = HdcInterface(root_authority=not args.not_hdc_root) 394 if self.args.local_lib_dir: 399 executor.get_host_local_libs(self.args.local_lib_dir) 404 if self.args.package_name: 405 if self.args.ability: 407 self.start_profiling(['--app', self.args.package_name]) 408 if self.args.ability: 409 ability = self.args.package_name + '/' + self.args.ability [all …]
|
/developtools/hiperf/test/unittest/common/native/ |
D | command_test.cpp | 76 std::string args; variable 78 args = TEST_OPTION_TRUE + " " + TEST_OPTION_TRUE + " " + TEST_OPTION_TRUE; 79 EXPECT_EQ(Command::DispatchCommand(args), false); 81 args = TEST_OPTION_TRUE + " " + TEST_OPTION_TRUE + " " + TEST_CMD_TRUE; 82 EXPECT_EQ(Command::DispatchCommand(args), true); 84 args = TEST_OPTION_TRUE + " " + TEST_CMD_TRUE + " " + TEST_OPTION_TRUE; 85 EXPECT_EQ(Command::DispatchCommand(args), true); 87 args = TEST_CMD_TRUE + " " + TEST_OPTION_TRUE + " " + TEST_OPTION_TRUE; 88 EXPECT_EQ(Command::DispatchCommand(args), true); 90 args = TEST_CMD_TRUE + " " + TEST_CMD_TRUE + " " + TEST_CMD_TRUE; [all …]
|
D | subcommand_test.cpp | 39 bool OnSubCommand(std::vector<std::string> &args) override in OnSubCommand() argument 128 std::vector<std::string> args; variable 130 args = {"test"}; 131 EXPECT_EQ(subcomm.OnSubCommandOptions(args), true); 132 args = {"--dumpoption"}; 133 EXPECT_EQ(subcomm.OnSubCommandOptions(args), true); 134 args = {"--dumpoption", "opt"}; 135 EXPECT_EQ(subcomm.OnSubCommandOptions(args), true); 136 args = {"--dumpoption", " "}; 137 EXPECT_EQ(subcomm.OnSubCommandOptions(args), true); [all …]
|
D | option_test.cpp | 120 std::vector<std::string> args; variable 123 EXPECT_EQ(Option::GetOptionValue(args = ONE_ARGS_WITH_VALUE, OPTION_NAME, boolVal), true); 124 EXPECT_EQ(args.size(), ONE_ARGS_WITH_VALUE.size() - 1u); // only one option should eat 126 EXPECT_EQ(Option::GetOptionValue(args = ONE_ARGS_WITH_VALUE, OPTION_ERROR_NAME, boolVal), true); 128 EXPECT_EQ(Option::GetOptionValue(args = ONE_ARGS_WITH_VALUE, OPTION_NAME, boolVal), true); 130 EXPECT_EQ(Option::GetOptionValue(args = ONE_ARGS_WITH_VALUE, OPTION_ILLEGAL_NAME, boolVal), 135 EXPECT_EQ(Option::GetOptionValue(args = TWO_ARGS_WITH_VALUE, OPTION_NAME, boolVal), true); 136 EXPECT_EQ(args.size(), TWO_ARGS_WITH_VALUE.size() - 1u); 138 EXPECT_EQ(Option::GetOptionValue(args = TWO_ARGS_WITH_VALUE, OPTION_ERROR_NAME, boolVal), true); 140 EXPECT_EQ(Option::GetOptionValue(args = TWO_ARGS_WITH_VALUE, OPTION_NAME, boolVal), true); [all …]
|
D | subcommand_list_test.cpp | 51 std::vector<std::string> args; variable 55 args = {"hw"}; 56 EXPECT_EQ(subCommandList.OnSubCommand(args), true); 67 std::vector<std::string> args; variable 71 args = {"sw"}; 72 EXPECT_EQ(subCommandList.OnSubCommand(args), true); 83 std::vector<std::string> args; variable 87 args = {"tp"}; 88 EXPECT_EQ(subCommandList.OnSubCommand(args), true); // still not support 99 std::vector<std::string> args; variable [all …]
|
D | subcommand_help_test.cpp | 46 bool OnSubCommand(std::vector<std::string> &args) override in OnSubCommand() argument 75 std::vector<std::string> args; variable 77 args = {"--help"}; 78 EXPECT_EQ(subCommandHelp.OnSubCommand(args), true); 88 std::vector<std::string> args; variable 90 EXPECT_EQ(subCommandHelp.OnHelp(args), true); 100 std::vector<std::string> args; variable 102 args = {"TEST_CMD_HLP"}; 103 EXPECT_EQ(subCommandHelp.OnHelp(args), true); 113 std::vector<std::string> args; variable [all …]
|
/developtools/integration_verification/cases/smoke/basic/screenshot32/resource/ |
D | capturescreentest.py | 39 with open(os.path.join(args.save_path, 'test_{}.log'.format(args.device_num)),\ 70 with open(os.path.join(args.save_path, 'test_{}.bat'.format(args.device_num)),\ 80 with open(os.path.join(args.save_path, 'test_{}.bat'.format(args.device_num)),\ 90 cmd = "hdc_std -t {} shell \"{}\"".format(args.device_num, shellcmd) 95 …cd /data/log/faultlog/temp && tar -cf after_test_cppcrash{}.tar cppcrash*".format(args.device_num)) 96 file_from_dev("/data/log/faultlog/temp/after_test_cppcrash{}.tar".format(args.device_num), \ 97 os.path.normpath(args.save_path)) 98 …ata/log/faultlog/faultlogger && tar -cf after_test_jscrash{}.tar jscrash*".format(args.device_num)) 99 … file_from_dev("/data/log/faultlog/faultlogger/after_test_jscrash{}.tar".format(args.device_num), \ 100 os.path.normpath(args.save_path)) [all …]
|
/developtools/packing_tool/adapter/ohos/ |
D | CommandParser.java | 91 public static boolean commandParser(Utility utility, String[] args) { in commandParser() argument 92 if (args == null) { in commandParser() 97 parser(utility, args); in commandParser() 107 private static void parser(Utility utility, String[] args) { in parser() argument 108 for (int i = 0; i < args.length - 1; i++) { in parser() 109 … if (parseAppCmd(utility, args[i], args[i + 1]) || parseHapCmd(utility, args[i], args[i + 1]) || in parser() 110 parseCommonCmd(utility, args[i], args[i + 1])) { in parser() 115 switch (args[i]) { in parser() 117 utility.setBinPath(args[i + 1]); in parser() 122 utility.setJarPath(args[i + 1]); in parser() [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/ |
D | subcommand.cpp | 30 bool SubCommand::OnSubCommandOptions(std::vector<std::string> args) in OnSubCommandOptions() argument 33 if (!Option::GetOptionValue(args, "--dumpoptions", dumpOptions_)) { in OnSubCommandOptions() 36 if (!Option::GetOptionValue(args, "--help", showHelp_) in OnSubCommandOptions() 37 || !Option::GetOptionValue(args, "-h", showHelp_)) { in OnSubCommandOptions() 42 if (!args.empty()) { in OnSubCommandOptions() 43 printf("unknown option '%s'\n", args.front().c_str()); in OnSubCommandOptions() 51 if (ParseOption(args)) { in OnSubCommandOptions() 55 HLOGD(" args left over: (%zu): %s", args.size(), VectorToString(args).c_str()); in OnSubCommandOptions() 56 if (!args.empty()) { in OnSubCommandOptions() 57 printf("unknown option '%s'\n", args.front().c_str()); in OnSubCommandOptions()
|
D | option.cpp | 55 std::vector<std::string>::iterator FindOption(std::vector<std::string> &args, in FindOption() argument 58 HLOGV("try find '%s' in args: %s", optionName.c_str(), VectorToString(args).c_str()); in FindOption() 59 auto tmpit = args.begin(); in FindOption() 61 for (; tmpit != args.end(); tmpit++) { in FindOption() 67 auto it = find(args.begin(), args.end(), optionName); in FindOption() 68 if (it != args.end()) { in FindOption() 69 if (tmpit != args.end() && it > tmpit) { in FindOption() 70 it = args.end(); in FindOption() 128 bool GetOptionTrackedCommand(std::vector<std::string> &args, in GetOptionTrackedCommand() argument 131 if (!args.empty()) { in GetOptionTrackedCommand() [all …]
|
D | subcommand_help.cpp | 25 bool SubCommandHelp::OnSubCommand(std::vector<std::string> &args) in OnSubCommand() argument 28 OnHelp(args); in OnSubCommand() 38 bool SubCommandHelp::OnHelp(std::vector<std::string> &args) in OnHelp() argument 40 if (args.empty()) { in OnHelp() 59 auto command = SubCommand::FindSubCommand(args.front()); in OnHelp() 61 args.clear(); in OnHelp() 64 printf("Unknown command: '%s'\n", args.front().c_str()); in OnHelp()
|
/developtools/hiperf/src/ |
D | subcommand.cpp | 27 bool SubCommand::OnSubCommandOptions(std::vector<std::string> args) in OnSubCommandOptions() argument 30 if (!Option::GetOptionValue(args, "--dumpoptions", dumpOptions_)) { in OnSubCommandOptions() 33 if (!Option::GetOptionValue(args, "--help", showHelp_) in OnSubCommandOptions() 34 || !Option::GetOptionValue(args, "-h", showHelp_)) { in OnSubCommandOptions() 39 if (!args.empty()) { in OnSubCommandOptions() 40 printf("unknown option '%s'\n", args.front().c_str()); in OnSubCommandOptions() 48 if (ParseOption(args)) { in OnSubCommandOptions() 52 HLOGD(" args left over: (%zu): %s", args.size(), VectorToString(args).c_str()); in OnSubCommandOptions() 53 if (!args.empty()) { in OnSubCommandOptions() 54 printf("unknown option '%s'\n", args.front().c_str()); in OnSubCommandOptions()
|
D | option_debug.cpp | 70 static bool OnLogPath(std::vector<std::string> &args) in OnLogPath() argument 72 if (args.size() > 0) { in OnLogPath() 73 DebugLogger::GetInstance()->SetLogPath(args[0]); in OnLogPath() 74 args.erase(args.begin()); in OnLogPath() 81 static bool OnLogTag(std::vector<std::string> &args) in OnLogTag() argument 83 if (args.size() > 0) { in OnLogTag() 84 DebugLogger::GetInstance()->SetLogTags(args[0]); in OnLogTag() 85 args.erase(args.begin()); in OnLogTag() 92 static bool OnHiLog(const std::vector<std::string> &args) in OnHiLog() argument
|
D | hiperf_libreport.cpp | 57 std::vector<std::string> args; in Report() local 58 args.emplace_back("-i"); in Report() 59 args.emplace_back(perfFile); in Report() 60 args.emplace_back("-o"); in Report() 61 args.emplace_back(reportFile); in Report() 65 args.emplace_back(option); in Report() 68 if (report->ParseOption(args)) { in Report() 69 return report->OnSubCommand(args) ? 0 : -1; in Report() 87 std::vector<std::string> args; in ReportUnwindJson() local 88 args.emplace_back("-i"); in ReportUnwindJson() [all …]
|
D | option.cpp | 55 std::vector<std::string>::iterator FindOption(std::vector<std::string> &args, in FindOption() argument 58 HLOGV("try find '%s' in args: %s", optionName.c_str(), VectorToString(args).c_str()); in FindOption() 59 auto tmpit = args.begin(); in FindOption() 61 for (; tmpit != args.end(); tmpit++) { in FindOption() 67 auto it = find(args.begin(), args.end(), optionName); in FindOption() 68 if (it != args.end()) { in FindOption() 69 if (tmpit != args.end() && it > tmpit) { in FindOption() 70 it = args.end(); in FindOption() 144 bool GetOptionTrackedCommand(std::vector<std::string> &args, in GetOptionTrackedCommand() argument 147 if (!args.empty()) { in GetOptionTrackedCommand() [all …]
|
/developtools/packing_tool/ |
D | build.py | 36 args = parser.parse_args() 37 print(args.haptobinOutput) 38 print(args.unpackOutput) 39 print(args.packOutput) 40 print(args.outpath) 41 print(args.compileTarget) 43 toolchain = args.toolchain 46 toolchain += "_" + args.compileTarget 51 …command_haptobin = ['bash', hap_to_bin_shell_path, root_dir, args.haptobinOutput, args.outpath, to… 71 …command_unpack = ['bash', unpack_tool_shell_path, root_dir, args.unpackOutput, args.outpath, big_v… [all …]
|
/developtools/hiperf/demo/cpp/ |
D | hiperf_example_cmd.cpp | 393 bool GetIntFromArg(std::vector<std::string> &args, int &value) in GetIntFromArg() argument 395 if (!args.empty()) { in GetIntFromArg() 396 if (std::all_of(args.begin()->begin(), args.begin()->end(), ::isdigit)) { in GetIntFromArg() 397 value = std::stoi(args[0]); in GetIntFromArg() 398 args.erase(args.begin()); in GetIntFromArg() 400 printf("unknown format '%s'\n", args[0].c_str()); in GetIntFromArg() 407 bool MatchArgs(std::vector<std::string> &args, const std::string &option) in MatchArgs() argument 409 if (args[0] == option) { in MatchArgs() 410 args.erase(args.begin()); in MatchArgs() 415 bool GetBoolFromArg(std::vector<std::string> &args, const std::string &option, bool &value) in GetBoolFromArg() argument [all …]
|
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/file-system/ |
D | TabPaneCallTree.ts | 251 let args: any[] = [] 254 args.push({ 259 args.push({ 263 args.push({ 267 args.push({ 273 args.push({ 277 args.push({ 281 args.push({ 292 args.push({ 305 args.push({ [all …]
|
D | TabPaneFileSystemCalltree.ts | 200 let args: any[] = [] 203 args.push({ 208 args.push({ 212 args.push({ 216 args.push({ 222 args.push({ 226 args.push({ 230 args.push({ 241 args.push({ 254 args.push({ [all …]
|
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/sheet/hiperf/ |
D | TabPerfProfile.ts | 246 let args: any[] = [] 249 args.push({ 254 args.push({ 258 args.push({ 262 args.push({ 268 args.push({ 272 args.push({ 276 args.push({ 287 args.push({ 300 args.push({ [all …]
|