Lines Matching refs:TimeTraceProfilerInstance
54 static LLVM_THREAD_LOCAL TimeTraceProfiler *TimeTraceProfilerInstance = nullptr; variable
57 return TimeTraceProfilerInstance; in getTimeTraceProfilerInstance()
350 assert(TimeTraceProfilerInstance == nullptr && in timeTraceProfilerInitialize()
352 TimeTraceProfilerInstance = new TimeTraceProfiler( in timeTraceProfilerInitialize()
360 delete TimeTraceProfilerInstance; in timeTraceProfilerCleanup()
361 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerCleanup()
375 Instances.List.push_back(TimeTraceProfilerInstance); in timeTraceProfilerFinishThread()
376 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerFinishThread()
380 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
382 TimeTraceProfilerInstance->write(OS); in timeTraceProfilerWrite()
387 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
407 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
408 return TimeTraceProfilerInstance->begin( in timeTraceProfilerBegin()
416 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
417 return TimeTraceProfilerInstance->begin(std::string(Name), Detail, false); in timeTraceProfilerBegin()
424 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
425 return TimeTraceProfilerInstance->begin(std::string(Name), Metadata, false); in timeTraceProfilerBegin()
431 if (TimeTraceProfilerInstance != nullptr) in timeTraceAsyncProfilerBegin()
432 return TimeTraceProfilerInstance->begin( in timeTraceAsyncProfilerBegin()
438 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerEnd()
439 TimeTraceProfilerInstance->end(); in timeTraceProfilerEnd()
443 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerEnd()
444 TimeTraceProfilerInstance->end(*E); in timeTraceProfilerEnd()