Lines Matching defs:idx

51     size_t idx = 0;
52 while (idx < args.size()) {
53 if (args[idx] == "-o") {
54 hookData.fileName = args[idx + 1].c_str();
55 } else if (args[idx] == "-p") {
56 std::vector<std::string> pids = StringSplit(args[idx + 1], ",");
70 } else if (args[idx] == "-n") {
71 hookData.processName = args[idx + 1];
72 } else if (args[idx] == "-s") {
73 hookData.smbSize = static_cast<uint32_t>(IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0);
74 if (std::to_string(hookData.smbSize) != args[idx + 1]) {
77 } else if (args[idx] == "-f") {
78 hookData.filterSize = static_cast<uint32_t>(IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0);
79 if (std::to_string(hookData.filterSize) != args[idx + 1]) {
85 } else if (args[idx] == "-d") {
86 hookData.maxStackDepth = static_cast<uint32_t>(IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0);
87 if (std::to_string(hookData.maxStackDepth) != args[idx + 1]) {
90 } else if (args[idx] == "-L") {
91 if (idx + 1 < args.size()) {
92 hookData.duration = std::stoull(args[idx + 1]);
94 } else if (args[idx] == "-F") {
95 if (idx + 1 < args.size()) {
96 hookData.performanceFilename = args[idx + 1];
98 } else if (args[idx] == "-u") {
99 std::string unwind = args[idx + 1];
108 } else if (args[idx] == "-S") {
109 hookData.statisticsInterval = static_cast<uint32_t>(IsDigits(args[idx + 1]) ?
110 std::stoi(args[idx + 1]) : 0);
111 if (std::to_string(hookData.statisticsInterval) != args[idx + 1]) {
114 } else if (args[idx] == "-i") {
115 hookData.sampleInterval = static_cast<uint32_t>(IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0);
116 if (std::to_string(hookData.sampleInterval) != args[idx + 1]) {
119 } else if (args[idx] == "-O") {
120 std::string offline = args[idx + 1];
129 } else if (args[idx] == "-C") {
130 std::string callframeCompress = args[idx + 1];
139 } else if (args[idx] == "-c") {
140 std::string stringCompressed = args[idx + 1];
149 } else if (args[idx] == "-r") {
150 std::string rawString = args[idx + 1];
159 } else if (args[idx] == "-so") {
160 std::string rawString = args[idx + 1];
169 } else if (args[idx] == "-js") {
170 hookData.jsStackReport = IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0;
171 if (std::to_string(hookData.jsStackReport) != args[idx + 1]) {
174 } else if (args[idx] == "-jsd") {
175 hookData.maxJsStackdepth = static_cast<uint32_t>(IsDigits(args[idx + 1]) ? std::stoi(args[idx + 1]) : 0);
176 if (std::to_string(hookData.maxJsStackdepth) != args[idx + 1]) {
179 } else if (args[idx] == "-jn") {
180 hookData.filterNapiName = args[idx + 1];
181 } else if (args[idx] == "-mfm") {
182 hookData.mallocFreeMatchingInterval = static_cast<uint32_t>(IsDigits(args[idx + 1]) ?
183 std::stoi(args[idx + 1]) : 0);
184 if (std::to_string(hookData.mallocFreeMatchingInterval) != args[idx + 1]) {
188 printf("args[%zu] = %s\n", idx, args[idx].c_str());
191 idx += VC_ARG_STEP_SIZE;