Lines Matching refs:TimeTraceProfilerInstance
52 static LLVM_THREAD_LOCAL TimeTraceProfiler *TimeTraceProfilerInstance = nullptr; variable
55 return TimeTraceProfilerInstance; in getTimeTraceProfilerInstance()
290 assert(TimeTraceProfilerInstance == nullptr && in timeTraceProfilerInitialize()
292 TimeTraceProfilerInstance = new TimeTraceProfiler( in timeTraceProfilerInitialize()
299 delete TimeTraceProfilerInstance; in timeTraceProfilerCleanup()
300 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerCleanup()
314 Instances.List.push_back(TimeTraceProfilerInstance); in timeTraceProfilerFinishThread()
315 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerFinishThread()
319 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
321 TimeTraceProfilerInstance->write(OS); in timeTraceProfilerWrite()
326 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
345 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
346 TimeTraceProfilerInstance->begin(std::string(Name), in timeTraceProfilerBegin()
352 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
353 TimeTraceProfilerInstance->begin(std::string(Name), Detail); in timeTraceProfilerBegin()
357 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerEnd()
358 TimeTraceProfilerInstance->end(); in timeTraceProfilerEnd()