Home
last modified time | relevance | path

Searched refs:TimeTraceProfilerInstance (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DTimeProfiler.cpp27 TimeTraceProfiler *TimeTraceProfilerInstance = nullptr; variable
193 assert(TimeTraceProfilerInstance == nullptr && in timeTraceProfilerInitialize()
195 TimeTraceProfilerInstance = new TimeTraceProfiler( in timeTraceProfilerInitialize()
200 delete TimeTraceProfilerInstance; in timeTraceProfilerCleanup()
201 TimeTraceProfilerInstance = nullptr; in timeTraceProfilerCleanup()
205 assert(TimeTraceProfilerInstance != nullptr && in timeTraceProfilerWrite()
207 TimeTraceProfilerInstance->Write(OS); in timeTraceProfilerWrite()
211 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
212 TimeTraceProfilerInstance->begin(Name, [&]() { return Detail; }); in timeTraceProfilerBegin()
217 if (TimeTraceProfilerInstance != nullptr) in timeTraceProfilerBegin()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DTimeProfiler.h17 extern TimeTraceProfiler *TimeTraceProfilerInstance;
30 return TimeTraceProfilerInstance != nullptr; in timeTraceProfilerEnabled()
62 if (TimeTraceProfilerInstance != nullptr) in TimeTraceScope()
66 if (TimeTraceProfilerInstance != nullptr) in TimeTraceScope()
70 if (TimeTraceProfilerInstance != nullptr) in TimeTraceScope()
74 if (TimeTraceProfilerInstance != nullptr) in ~TimeTraceScope()
/external/llvm-project/llvm/lib/Support/
DTimeProfiler.cpp36 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()
[all …]