Lines Matching refs:args
97 std::string args = "{\"data\":{\"frameTreeNodeId\":1,\"frames\":[{";
98 args += "\"frame\":\"0\",\"name\":\"\",";
99 args += "\"processId\":" + std::to_string(getpid()) + ",";
100 args += "\"url\":\"https://url not exist/\"}],";
101 args += "\"persistentIds\":true}}";
107 event.SetArgs(args);
123 std::string args = "{\"data\":{\"jsHeapSizeUsed\":" + std::to_string(DFXJSNApi::GetHeapUsedSize(vm_)) + "}}";
124 event.SetArgs(args);
132 std::string args = "{\"data\":{\"startTime\":" + std::to_string(profileInfo->startTime) + "}}";
137 event.SetArgs(args);
155 struct TraceEventCpuProfileArg args;
158 args.nodes.emplace_back(profileInfo->nodes[i].id);
164 std::back_inserter(args.samples));
166 std::back_inserter(args.timeDeltas));
169 event.SetCpuProfileArgs(args);
184 std::string args = "{\"data\":{\"cpuProfile\":{";
187 args += "\"nodes\": [";
190 args += "{\"callFrame\":{\"codeType\":\"JS\",";
192 args += "\"columnNumber\":" + std::to_string(nodeInfo.codeEntry.columnNumber) + ",";
194 args += "\"functionName\":\"" + nodeInfo.codeEntry.functionName + "\",";
196 args += "\"lineNumber\":" + std::to_string(nodeInfo.codeEntry.lineNumber) + ",";
198 args += "\"scriptId\":" + std::to_string(nodeInfo.codeEntry.scriptId) + ",";
200 args += "\"url\":\"" + nodeInfo.codeEntry.url + "\"";
202 args.pop_back();
204 args += "},";
205 args += "\"id\":" + std::to_string(nodeInfo.id) + ",";
207 args += "\"parent\":" + std::to_string(nodeInfo.parentId) + ",";
209 args += "\"hitCount\":" + std::to_string(nodeInfo.hitCount) + ",";
210 args += "\"children\":[";
212 args += std::to_string(it) + ",";
215 args.pop_back();
217 args += "]},";
219 args.pop_back();
220 args += "],";
224 args += "\"samples\": [";
226 args += std::to_string(sample) + ",";
228 args.pop_back();
229 args += "]},";
232 args += "\"lines\": [";
234 args += std::to_string(profileInfo->nodes[profileInfo->samples[sample - 1]].codeEntry.lineNumber + 1) + ",";
236 args.pop_back();
237 args += "],";
240 args += "\"timeDeltas\": [";
242 args += std::to_string(timeDelta) + ",";
244 args.pop_back();
245 args += "]}}";
247 event.SetArgs(args);
255 std::string args = "{\"data\":{\"endTime\":" + std::to_string(profileInfo->stopTime) + "}}";
260 event.SetArgs(args);