Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcmd_trace_sched.cpp61 SpinInfo spin_info; member
260 SpinInfo& spin_info = thread.spin_info; in ProcessSampleRecord() local
261 spin_info.runtime_in_check_period += runtime; in ProcessSampleRecord()
262 spin_info.samples_in_check_period.push(SampleInfo(record.Timestamp(), runtime)); in ProcessSampleRecord()
265 if (thread.spin_info.samples_in_check_period.size() == 1u) { in ProcessSampleRecord()
268 uint64_t start_timestamp = spin_info.samples_in_check_period.front().timestamp; in ProcessSampleRecord()
273 if (thread.spin_info.runtime_in_check_period > time_period_in_ns * spinloop_check_rate_) { in ProcessSampleRecord()
275 thread.spin_info.spinloop_count++; in ProcessSampleRecord()
277 1.0, static_cast<double>(thread.spin_info.runtime_in_check_period) / time_period_in_ns); in ProcessSampleRecord()
278 if (rate > thread.spin_info.max_rate) { in ProcessSampleRecord()
[all …]