Lines Matching defs:profiler
101 auto profiler = std::make_shared<PGOProfiler>(vm, isEnable);
104 profilers_.insert(profiler);
106 return profiler;
115 void Destroy(std::shared_ptr<PGOProfiler> &profiler)
117 if (profiler != nullptr) {
118 profiler->WaitPGODumpFinish();
119 profiler->HandlePGOPreDump();
120 Merge(profiler.get());
123 profilers_.erase(profiler);
125 profiler.reset();
129 void Reset(const std::shared_ptr<PGOProfiler>& profiler, bool isEnable)
134 if (profiler) {
135 profiler->Reset(isEnable);
176 void Merge(PGOProfiler *profiler)
178 if (encoder_ && profiler->isEnable_) {
180 encoder_->Merge(*profiler->recordInfos_);
213 for (const auto &profiler : profilers_) {
214 profiler->DumpByForce();