Lines Matching refs:TimeTraceProfilerInstance
36 static LLVM_THREAD_LOCAL TimeTraceProfiler *TimeTraceProfilerInstance = nullptr; variable
39 return TimeTraceProfilerInstance; in getTimeTraceProfilerInstance()
265 assert(TimeTraceProfilerInstance == nullptr && in timeTraceProfilerInitialize()
267 TimeTraceProfilerInstance = new TimeTraceProfiler( in timeTraceProfilerInitialize()
274 delete TimeTraceProfilerInstance; in timeTraceProfilerCleanup()
285 ThreadTimeTraceProfilerInstances.push_back(TimeTraceProfilerInstance); in timeTraceProfilerFinishThread()
286 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerFinishThread()
290 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
292 TimeTraceProfilerInstance->write(OS); in timeTraceProfilerWrite()
297 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
316 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
317 TimeTraceProfilerInstance->begin(std::string(Name), in timeTraceProfilerBegin()
323 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
324 TimeTraceProfilerInstance->begin(std::string(Name), Detail); in timeTraceProfilerBegin()
328 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerEnd()
329 TimeTraceProfilerInstance->end(); in timeTraceProfilerEnd()