• Home
  • Raw
  • Download

Lines Matching refs:args

50 bool ParseCommand(std::vector<std::string> args, HookData& hookData)  in ParseCommand()  argument
53 while (idx < args.size()) { in ParseCommand()
54 if (args[idx] == "-o") { in ParseCommand()
55 hookData.fileName = args[idx + 1].c_str(); in ParseCommand()
56 } else if (args[idx] == "-p") { in ParseCommand()
57 hookData.pid = std::stoi(args[idx + 1], nullptr); in ParseCommand()
58 if (std::to_string(hookData.pid) != args[idx + 1]) { in ParseCommand()
61 if (!ProcessExist(args[idx + 1])) { in ParseCommand()
65 } else if (args[idx] == "-n") { in ParseCommand()
66 hookData.processName = args[idx + 1]; in ParseCommand()
67 } else if (args[idx] == "-s") { in ParseCommand()
68 hookData.smbSize = std::stoi(args[idx + 1], nullptr); in ParseCommand()
69 if (std::to_string(hookData.smbSize) != args[idx + 1]) { in ParseCommand()
72 } else if (args[idx] == "-f") { in ParseCommand()
73 hookData.filterSize = std::stoi(args[idx + 1], nullptr); in ParseCommand()
74 if (std::to_string(hookData.filterSize) != args[idx + 1]) { in ParseCommand()
80 } else if (args[idx] == "-d") { in ParseCommand()
81 hookData.maxStackDepth = std::stoi(args[idx + 1], nullptr); in ParseCommand()
82 if (std::to_string(hookData.maxStackDepth) != args[idx + 1]) { in ParseCommand()
85 } else if (args[idx] == "-L") { in ParseCommand()
86 if (idx + 1 < args.size()) { in ParseCommand()
87 hookData.duration = std::stoull(args[idx + 1]); in ParseCommand()
89 } else if (args[idx] == "-F") { in ParseCommand()
90 if (idx + 1 < args.size()) { in ParseCommand()
91 hookData.performance_filename = args[idx + 1]; in ParseCommand()
93 } else if (args[idx] == "-u") { in ParseCommand()
94 std::string unwind = args[idx + 1]; in ParseCommand()
103 } else if (args[idx] == "-S") { in ParseCommand()
104 hookData.statisticsInterval = std::stoi(args[idx + 1], nullptr); in ParseCommand()
105 if (std::to_string(hookData.statisticsInterval) != args[idx + 1]) { in ParseCommand()
108 } else if (args[idx] == "-O") { in ParseCommand()
109 std::string offline = args[idx + 1]; in ParseCommand()
118 } else if (args[idx] == "-C") { in ParseCommand()
119 std::string callframeCompress = args[idx + 1]; in ParseCommand()
128 } else if (args[idx] == "-c") { in ParseCommand()
129 std::string stringCompressed = args[idx + 1]; in ParseCommand()
138 } else if (args[idx] == "-r") { in ParseCommand()
139 std::string rawString = args[idx + 1]; in ParseCommand()
149 printf("args[%zu] = %s\n", idx, args[idx].c_str()); in ParseCommand()
157 bool VerifyCommand(std::vector<std::string> args, HookData& hookData) in VerifyCommand() argument
159 if ((args.size() % VC_ARG_TWAIN) != 0) { in VerifyCommand()
166 if (!ParseCommand(args, hookData)) { in VerifyCommand()
222 std::vector<std::string> args; in main() local
224 args.push_back(argv[i]); in main()
229 if (VerifyCommand(args, hookData)) { in main()