Lines Matching refs:the_trace
226 Trace* the_trace = reinterpret_cast<Trace*>(arg); in GetSample() local
227 the_trace->CompareAndUpdateStackTrace(thread, stack_trace); in GetSample()
289 Trace* the_trace; in RunSamplingThread() local
292 the_trace = the_trace_; in RunSamplingThread()
293 if (the_trace == nullptr) { in RunSamplingThread()
300 runtime->GetThreadList()->ForEach(GetSample, the_trace); in RunSamplingThread()
388 Trace* the_trace = nullptr; in StopTracing() local
396 the_trace = the_trace_; in StopTracing()
414 if (the_trace != nullptr) { in StopTracing()
415 stop_alloc_counting = (the_trace->flags_ & Trace::kTraceCountAllocs) != 0; in StopTracing()
417 the_trace->FinishTracing(); in StopTracing()
420 if (the_trace->trace_mode_ == TraceMode::kSampling) { in StopTracing()
426 the_trace, instrumentation::Instrumentation::kMethodEntered | in StopTracing()
430 if (the_trace->trace_file_.get() != nullptr) { in StopTracing()
433 if (the_trace->trace_file_->Flush() != 0) { in StopTracing()
437 the_trace->trace_file_->MarkUnchecked(); // Do not trigger guard. in StopTracing()
439 if (the_trace->trace_file_->Close() != 0) { in StopTracing()
443 delete the_trace; in StopTracing()
471 Trace* the_trace = nullptr; in Pause() local
481 the_trace = the_trace_; in Pause()
495 the_trace_ = the_trace; in Pause()
499 if (the_trace != nullptr) { in Pause()
504 stop_alloc_counting = (the_trace->flags_ & Trace::kTraceCountAllocs) != 0; in Pause()
506 if (the_trace->trace_mode_ == TraceMode::kSampling) { in Pause()
512 the_trace, in Pause()
527 Trace* the_trace; in Resume() local
534 the_trace = the_trace_; in Resume()
540 bool enable_stats = (the_trace->flags_ && kTraceCountAllocs) != 0; in Resume()
549 if (the_trace->trace_mode_ == TraceMode::kSampling) { in Resume()
551 reinterpret_cast<void*>(the_trace->interval_us_)), "Sampling profiler thread"); in Resume()
553 runtime->GetInstrumentation()->AddListener(the_trace, in Resume()