• Home
  • Raw
  • Download

Lines Matching refs:traceEvent

107     TraceEvent* traceEvent  = reinterpret_cast<TraceEvent*>(storagePtr);  in addTraceEvent()  local
108 traceEvent->fPhase = phase; in addTraceEvent()
109 traceEvent->fNumArgs = numArgs; in addTraceEvent()
110 traceEvent->fSize = size; in addTraceEvent()
111 traceEvent->fName = name; in addTraceEvent()
112 traceEvent->fID = id; in addTraceEvent()
113 traceEvent->fClockBegin = std::chrono::steady_clock::now().time_since_epoch().count(); in addTraceEvent()
114 traceEvent->fClockEnd = 0; in addTraceEvent()
115 traceEvent->fThreadID = SkGetThreadID(); in addTraceEvent()
117 TraceEventArg* traceEventArgs = traceEvent->args(); in addTraceEvent()
118 char* stringTableBase = traceEvent->stringTable(); in addTraceEvent()
147 TraceEvent* traceEvent = reinterpret_cast<TraceEvent*>(handle); in updateTraceEventDuration() local
148 traceEvent->fClockEnd = std::chrono::steady_clock::now().time_since_epoch().count(); in updateTraceEventDuration()
196 TraceEvent* traceEvent, in trace_event_to_json() argument
201 if (TRACE_EVENT_PHASE_CREATE_OBJECT == traceEvent->fPhase) { in trace_event_to_json()
202 SkASSERT(nullptr == baseTypeResolver->find(traceEvent->fID)); in trace_event_to_json()
203 baseTypeResolver->set(traceEvent->fID, traceEvent->fName); in trace_event_to_json()
204 } else if (TRACE_EVENT_PHASE_DELETE_OBJECT == traceEvent->fPhase) { in trace_event_to_json()
205 SkASSERT(nullptr != baseTypeResolver->find(traceEvent->fID)); in trace_event_to_json()
206 baseTypeResolver->remove(traceEvent->fID); in trace_event_to_json()
211 char phaseString[2] = {traceEvent->fPhase, 0}; in trace_event_to_json()
213 writer->appendString("name", traceEvent->fName); in trace_event_to_json()
214 if (0 != traceEvent->fID) { in trace_event_to_json()
216 writer->appendPointer("id", reinterpret_cast<void*>(traceEvent->fID)); in trace_event_to_json()
222 static_cast<int64_t>(traceEvent->fClockBegin - serializationState->fClockOffset); in trace_event_to_json()
224 if (0 != traceEvent->fClockEnd) { in trace_event_to_json()
225 double dur = static_cast<double>(traceEvent->fClockEnd - traceEvent->fClockBegin) * 1E-3; in trace_event_to_json()
229 writer->appendS64("tid", serializationState->getShortThreadID(traceEvent->fThreadID)); in trace_event_to_json()
234 if (traceEvent->fNumArgs) { in trace_event_to_json()
236 const char* stringTable = traceEvent->stringTable(); in trace_event_to_json()
238 if (TRACE_EVENT_PHASE_SNAPSHOT_OBJECT == traceEvent->fPhase && in trace_event_to_json()
239 baseTypeResolver->find(traceEvent->fID) && in trace_event_to_json()
240 0 != strcmp(*baseTypeResolver->find(traceEvent->fID), traceEvent->fName)) { in trace_event_to_json()
243 writer->appendString("base_type", *baseTypeResolver->find(traceEvent->fID)); in trace_event_to_json()
247 for (int i = 0; i < traceEvent->fNumArgs; ++i) { in trace_event_to_json()
248 const TraceEventArg* arg = traceEvent->args() + i; in trace_event_to_json()
298 TraceEvent* traceEvent = reinterpret_cast<TraceEvent*>(block.fBlock.get()); in flush() local
300 trace_event_to_json(writer, traceEvent, serializationState); in flush()
301 traceEvent = traceEvent->next(); in flush()