Lines Matching defs:cmd

227 ErrCode CliCommand::HeapProfilerCommand(const std::string &cmd)
233 if ((cmd == "allocationtrack" || cmd == "sampling") && !argList.empty()) {
239 std::cout << "exe success, cmd is " << cmd << std::endl;
245 std::cout << "exe success, cmd is " << cmd << std::endl;
260 bool result = heapProfilerClient.DispatcherCmd(cmd, argList[0]);
264 ErrCode CliCommand::CpuProfileCommand(const std::string &cmd)
271 if (cmd == "cpuprofile") {
273 std::cout << "exe success, cmd is " << cmd << std::endl;
279 if (cmd == "cpuprofile-show") {
280 std::cout << "exe success, cmd is " << cmd << std::endl;
284 if (cmd == "cpuprofile-setSamplingInterval") {
285 std::cout << "exe success, cmd is " << cmd << std::endl;
288 if (cmd == "cpuprofile-stop" && GetArgList().size() == 1) {
294 std::cout << "exe success, cmd is " << cmd << std::endl;
304 bool result = profilerClient.DispatcherCmd(cmd);
308 ErrCode CliCommand::DebuggerCommand(const std::string &cmd)
311 OutputCommand(cmd, false);
319 result = debuggerCli.DispatcherCmd(cmd);
320 OutputCommand(cmd, true);
324 ErrCode CliCommand::RuntimeCommand(const std::string &cmd)
327 OutputCommand(cmd, false);
334 result = runtimeClient.DispatcherCmd(cmd);
340 OutputCommand(cmd, true);
344 ErrCode CliCommand::BreakCommand(const std::string &cmd)
353 OutputCommand(cmd, false);
365 OutputCommand(cmd, false);
369 result = debuggerCli.DispatcherCmd(cmd);
370 OutputCommand(cmd, true);
374 ErrCode CliCommand::DeleteCommand(const std::string &cmd)
382 OutputCommand(cmd, false);
395 OutputCommand(cmd, false);
398 result = debuggerCli.DispatcherCmd(cmd);
399 OutputCommand(cmd, true);
403 ErrCode CliCommand::DisplayCommand(const std::string &cmd)
406 OutputCommand(cmd, false);
412 OutputCommand(cmd, true);
416 ErrCode CliCommand::InfosourceCommand(const std::string &cmd)
421 OutputCommand(cmd, false);
425 OutputCommand(cmd, false);
432 OutputCommand(cmd, true);
436 ErrCode CliCommand::ListCommand(const std::string &cmd)
446 OutputCommand(cmd, false);
452 OutputCommand(cmd, false);
459 OutputCommand(cmd, false);
465 OutputCommand(cmd, true);
469 ErrCode CliCommand::StepCommand(const std::string &cmd)
472 OutputCommand(cmd, false);
480 result = debuggerCli.DispatcherCmd(cmd);
481 OutputCommand(cmd, true);
485 ErrCode CliCommand::ShowstackCommand(const std::string &cmd)
488 OutputCommand(cmd, false);
494 OutputCommand(cmd, true);
498 ErrCode CliCommand::PrintCommand(const std::string &cmd)
501 OutputCommand(cmd, false);
513 result = runtimeClient.DispatcherCmd(cmd);
519 OutputCommand(cmd, true);
523 ErrCode CliCommand::WatchCommand(const std::string &cmd)
526 OutputCommand(cmd, false);
538 OutputCommand(cmd, true);
542 ErrCode CliCommand::SessionAddCommand([[maybe_unused]] const std::string &cmd)
547 OutputCommand(cmd, true);
553 OutputCommand(cmd, false);
559 ErrCode CliCommand::SessionDelCommand([[maybe_unused]] const std::string &cmd)
577 OutputCommand(cmd, false);
583 ErrCode CliCommand::SessionListCommand([[maybe_unused]] const std::string &cmd)
586 OutputCommand(cmd, false);
590 OutputCommand(cmd, true);
594 ErrCode CliCommand::SessionSwitchCommand([[maybe_unused]] const std::string &cmd)
601 OutputCommand(cmd, true);
608 OutputCommand(cmd, false);
613 ErrCode CliCommand::TestCommand(const std::string &cmd)
615 if (cmd == "success" || cmd == "fail") {
618 testClient.DispatcherCmd(cmd);
631 void CliCommand::OutputCommand(const std::string &cmd, bool flag)
634 std::cout << "exe success, cmd is " << cmd << std::endl;
636 std::cout << cmd << " parameters is incorrect" << std::endl;