Home
last modified time | relevance | path

Searched refs:generator_ (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dsampling_processor.cpp34 generator_ = generator; in SamplingProcessor()
46 generator_->SetThreadStartTime(startTime); in Run()
47 while (generator_->GetIsStart()) { in Run()
52 if (generator_->SemWait(0) != 0) { in Run()
63 … if (generator_->GetMethodNodeCount() + generator_->GetframeStackLength() >= MAX_NODE_COUNT) { in Run()
66 if (generator_->samplesQueue_->IsEmpty()) { in Run()
68 generator_->AddEmptyStackSample(sampleTimeStamp); in Run()
70 while (!generator_->samplesQueue_->IsEmpty()) { in Run()
71 FrameStackAndInfo *frame = generator_->samplesQueue_->PopFrame(); in Run()
72 generator_->AddSample(frame); in Run()
[all …]
Dcpu_profiler.cpp36 generator_ = new SamplesRecord(); in CpuProfiler()
37 generator_->SetEnableVMTag(enableVMTag_); in CpuProfiler()
38 generator_->NodeInit(); in CpuProfiler()
39 if (generator_->SemInit(0, 0, 0) != 0) { in CpuProfiler()
42 if (generator_->SemInit(1, 0, 0) != 0) { in CpuProfiler()
45 if (generator_->SemInit(2, 0, 0) != 0) { // 2: signal 2 in CpuProfiler()
84generator_->SetTimeDeltaThreshold(interval_ * THRESHOLD_GROWTH_FACTORY + THRESHOLD_FIXED_INCREMENT… in StartCpuProfilerForInfo()
85 generator_->SetIsStart(true); in StartCpuProfilerForInfo()
87 … std::make_unique<SamplingProcessor>(vm_->GetJSThread()->GetThreadId(), generator_, interval_)); in StartCpuProfilerForInfo()
110 generator_->SetFileName(fileName_); in StartCpuProfilerForFile()
[all …]
Dsampling_processor.h42 SamplesRecord *generator_ = nullptr;
Dcpu_profiler.h112 SamplesRecord *generator_ = nullptr; variable