Lines Matching refs:profileInfo
67 std::unique_ptr<ProfileInfo> profileInfo = panda::DFXJSNApi::StopCpuProfilerForInfo(vm_);
69 if (profileInfo) {
70 TraceEventUpdateCpuProfiler(profileInfo.get());
129 void Tracing::TraceEventRecordCpuProfilerStart(struct ProfileInfo* profileInfo)
132 std::string args = "{\"data\":{\"startTime\":" + std::to_string(profileInfo->startTime) + "}}";
143 void Tracing::TraceEventRecordCpuProfiler(struct ProfileInfo* profileInfo, int &nodePos, uint32_t &samplePos)
156 if (nodePos >= 0 && profileInfo->nodeCount > nodePos) {
157 for (int i = nodePos; i < profileInfo->nodeCount; ++i) {
158 args.nodes.emplace_back(profileInfo->nodes[i].id);
160 nodePos = profileInfo->nodeCount;
163 std::copy(profileInfo->samples.begin() + samplePos, profileInfo->samples.end(),
165 std::copy(profileInfo->timeDeltas.begin() + samplePos, profileInfo->timeDeltas.end(),
167 samplePos = profileInfo->samples.size();
175 void Tracing::TraceEventUpdateCpuProfiler(struct ProfileInfo *profileInfo)
189 struct CpuProfileNode &nodeInfo = profileInfo->nodes[nodeId - 1];
234 args += std::to_string(profileInfo->nodes[profileInfo->samples[sample - 1]].codeEntry.lineNumber + 1) + ",";
252 void Tracing::TraceEventRecordCpuProfilerEnd(struct ProfileInfo* profileInfo)
255 std::string args = "{\"data\":{\"endTime\":" + std::to_string(profileInfo->stopTime) + "}}";