Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/src/
DProcStatCollector.cpp43 bool parseCpuStats(const std::string& data, int32_t millisPerClockTick, CpuStats* cpuStats) { in parseCpuStats() argument
52 !ParseInt(fields[1], &cpuStats->userTimeMillis) || in parseCpuStats()
53 !ParseInt(fields[2], &cpuStats->niceTimeMillis) || in parseCpuStats()
54 !ParseInt(fields[3], &cpuStats->sysTimeMillis) || in parseCpuStats()
55 !ParseInt(fields[4], &cpuStats->idleTimeMillis) || in parseCpuStats()
56 !ParseInt(fields[5], &cpuStats->ioWaitTimeMillis) || in parseCpuStats()
57 !ParseInt(fields[6], &cpuStats->irqTimeMillis) || in parseCpuStats()
58 !ParseInt(fields[7], &cpuStats->softIrqTimeMillis) || in parseCpuStats()
59 !ParseInt(fields[8], &cpuStats->stealTimeMillis) || in parseCpuStats()
60 !ParseInt(fields[9], &cpuStats->guestTimeMillis) || in parseCpuStats()
[all …]
DProcStatCollector.h62 cpuStats({}), in ProcStatInfo()
68 cpuStats(stats), in ProcStatInfo()
72 CpuStats cpuStats; variable
78 return cpuStats.userTimeMillis + cpuStats.niceTimeMillis + cpuStats.sysTimeMillis + in totalCpuTimeMillis()
79 cpuStats.idleTimeMillis + cpuStats.ioWaitTimeMillis + cpuStats.irqTimeMillis + in totalCpuTimeMillis()
80 cpuStats.softIrqTimeMillis + cpuStats.stealTimeMillis + cpuStats.guestTimeMillis + in totalCpuTimeMillis()
81 cpuStats.guestNiceTimeMillis; in totalCpuTimeMillis()
85 return memcmp(&cpuStats, &info.cpuStats, sizeof(cpuStats)) == 0 &&
90 cpuStats -= rhs.cpuStats;
DPerformanceProfiler.cpp1299 systemSummaryStats->cpuIoWaitTimeMillis = procStatInfo.cpuStats.ioWaitTimeMillis; in processProcStatLocked()
1300 systemSummaryStats->cpuIdleTimeMillis = procStatInfo.cpuStats.idleTimeMillis; in processProcStatLocked()
/packages/services/Car/cpp/watchdog/server/tests/
DProcStatCollectorTest.cpp43 const auto& cpuStats = info.cpuStats; in toString() local
51 cpuStats.userTimeMillis, cpuStats.niceTimeMillis, cpuStats.sysTimeMillis, in toString()
52 cpuStats.idleTimeMillis, cpuStats.ioWaitTimeMillis, cpuStats.irqTimeMillis, in toString()
53 cpuStats.softIrqTimeMillis, cpuStats.stealTimeMillis, in toString()
54 cpuStats.guestTimeMillis, cpuStats.guestNiceTimeMillis, in toString()
79 expectedFirstDelta.cpuStats = { in TEST()
125 expectedSecondDelta.cpuStats = { in TEST()