Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/src/
DUidProcStatsCollector.cpp344 for (const auto& [pid, processStats] : processStatsByPid) { in toString()
346 processStats.toString().c_str()); in toString()
451 for (const auto& [pid, processStats] : currUidStats.processStatsByPid) { in collect()
452 ProcessStats deltaProcessStats = processStats; in collect()
466 for (const auto& [tid, threadCpuCycles] : processStats.cpuCyclesByTid) { in collect()
513 ProcessStats processStats = std::get<ProcessStats>(*result); in readUidProcStatsLocked() local
518 uidProcStats->cpuTimeMillis += processStats.cpuTimeMillis; in readUidProcStatsLocked()
519 uidProcStats->cpuCycles = addUint64(uidProcStats->cpuCycles, processStats.totalCpuCycles); in readUidProcStatsLocked()
520 uidProcStats->totalMajorFaults += processStats.totalMajorFaults; in readUidProcStatsLocked()
521 uidProcStats->totalTasksCount += processStats.totalTasksCount; in readUidProcStatsLocked()
[all …]
DPerformanceProfiler.cpp173 for (auto [_, processStats] : procStats.processStatsByPid) { in calculateUidUptimeMillis()
174 if (processStats.startTimeMillis < earliestProcStartTimeMillis) { in calculateUidUptimeMillis()
175 earliestProcStartTimeMillis = processStats.startTimeMillis; in calculateUidUptimeMillis()
322 for (auto [_, processStats] : uidStats.procStats.processStatsByPid) { in UserPackageStats()
323 totalUssKb += processStats.ussKb; in UserPackageStats()
324 totalSwapPssKb += processStats.swapPssKb; in UserPackageStats()
456 for (const auto& [_, processStats] : uidStats.procStats.processStatsByPid) { in cacheTopNProcessSingleStats()
457 uint64_t value = procStatType == IO_BLOCKED_TASKS_COUNT ? processStats.ioBlockedTasksCount in cacheTopNProcessSingleStats()
458 : processStats.totalMajorFaults; in cacheTopNProcessSingleStats()
466 .comm = processStats.comm, in cacheTopNProcessSingleStats()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DUidProcStatsCollectorTest.cpp113 for (auto& [pid, processStats] : uidProcStats.processStatsByPid) { in applyFeatureFilter()
114 processStats.rssKb = 0; in applyFeatureFilter()
115 processStats.pssKb = 0; in applyFeatureFilter()
116 processStats.ussKb = 0; in applyFeatureFilter()
117 processStats.swapPssKb = 0; in applyFeatureFilter()
1324 const auto& processStats = collector.deltaStats(); in TEST() local
1327 EXPECT_GT(processStats.size(), static_cast<size_t>(0)); in TEST()