Lines Matching defs:Instances
48 static TimeTraceProfilerInstances Instances;
49 return Instances;
215 auto &Instances = getTimeTraceProfilerInstances();
216 std::lock_guard<std::mutex> Lock(Instances.Lock);
219 assert(llvm::all_of(Instances.List,
276 for (const TimeTraceProfiler *TTP : Instances.List)
284 for (const TimeTraceProfiler *TTP : Instances.List)
298 for (const TimeTraceProfiler *TTP : Instances.List)
349 for (const TimeTraceProfiler *TTP : Instances.List)
407 auto &Instances = getTimeTraceProfilerInstances();
408 std::lock_guard<std::mutex> Lock(Instances.Lock);
409 for (auto *TTP : Instances.List)
411 Instances.List.clear();
417 auto &Instances = getTimeTraceProfilerInstances();
418 std::lock_guard<std::mutex> Lock(Instances.Lock);
419 Instances.List.push_back(TimeTraceProfilerInstance);