Home
last modified time | relevance | path

Searched refs:sampleIdx (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dsamples_record.cpp240 size_t sampleIdx = 0; // samples index in FinetuneSampleData() local
244 while (sampleIdx < samplesCount && napiCallIdx < napiCallCount) { in FinetuneSampleData()
246 sampleTime += static_cast<uint64_t>(profileInfo_->timeDeltas[sampleIdx]); in FinetuneSampleData()
248 sampleIdx++; in FinetuneSampleData()
252 size_t findIdx = sampleIdx; in FinetuneSampleData()
253 size_t preIdx = sampleIdx; in FinetuneSampleData()
255 static_cast<uint64_t>(profileInfo_->timeDeltas[sampleIdx]); // preIdx's timestamp in FinetuneSampleData()
257 if (sampleIdx - 1 >= 0) { in FinetuneSampleData()
258 preIdx = sampleIdx - 1; in FinetuneSampleData()
259 preSampleTime -= static_cast<uint64_t>(profileInfo_->timeDeltas[sampleIdx - 1]); in FinetuneSampleData()
[all …]
Dsamples_record.h160 void FindSampleAndFinetune(size_t findIdx, size_t napiCallIdx, size_t &sampleIdx,