Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/src/
DUidIoStats.h84 struct UidIoUsage { struct
87 UidIoUsage& operator-=(const UidIoUsage& rhs) { argument
91 bool operator==(const UidIoUsage& rhs) const { return uid == rhs.uid && ios == rhs.ios; }
107 virtual const std::unordered_map<uid_t, UidIoUsage> latestStats() const { in latestStats() argument
112 virtual const std::unordered_map<uid_t, UidIoUsage> deltaStats() const { in deltaStats()
125 android::base::Result<std::unordered_map<uid_t, UidIoUsage>> getUidIoUsagesLocked() const;
131 std::unordered_map<uid_t, UidIoUsage> mLatestUidIoUsages GUARDED_BY(mMutex);
134 std::unordered_map<uid_t, UidIoUsage> mDeltaUidIoUsages GUARDED_BY(mMutex);
DUidIoStats.cpp48 bool parseUidIoStats(const std::string& data, UidIoUsage* usage) { in parseUidIoStats()
117 UidIoUsage curUsage = it.second; in collect()
132 Result<std::unordered_map<uid_t, UidIoUsage>> UidIoStats::getUidIoUsagesLocked() const { in getUidIoUsagesLocked()
139 std::unordered_map<uid_t, UidIoUsage> uidIoUsages; in getUidIoUsagesLocked()
140 UidIoUsage usage; in getUidIoUsagesLocked()
DIoPerfCollection.cpp417 const std::unordered_map<uid_t, UidIoUsage>& usages = uidIoStats.promote()->deltaStats(); in processUidIoPerfData()
420 UidIoUsage tempUsage = {}; in processUidIoPerfData()
421 std::vector<const UidIoUsage*> topNReads(mTopNStatsPerCategory, &tempUsage); in processUidIoPerfData()
422 std::vector<const UidIoUsage*> topNWrites(mTopNStatsPerCategory, &tempUsage); in processUidIoPerfData()
426 const UidIoUsage& curUsage = uIt.second; in processUidIoPerfData()
442 const UidIoUsage* curRead = *it; in processUidIoPerfData()
452 const UidIoUsage* curWrite = *it; in processUidIoPerfData()
/packages/services/Car/cpp/watchdog/server/tests/
DMockUidIoStats.h37 MOCK_METHOD((const std::unordered_map<uid_t, UidIoUsage>), latestStats, (), (const, override));
38 MOCK_METHOD((const std::unordered_map<uid_t, UidIoUsage>), deltaStats, (), (const, override));
42 std::unordered_map<uid_t, UidIoUsage> stats; in expectDeltaStats()
44 stats[uid] = UidIoUsage{.uid = uid, .ios = ios}; in expectDeltaStats()
DUidIoStatsTest.cpp35 std::string toString(std::unordered_map<uid_t, UidIoUsage> usages) { in toString()
52 std::unordered_map<uid_t, UidIoUsage> expectedFirstUsage = in TEST()
77 std::unordered_map<uid_t, UidIoUsage> expectedSecondUsage = in TEST()
DIoPerfCollectionTest.cpp187 const std::unordered_map<uid_t, UidIoUsage> uidIoUsages({ in TEST()
255 const std::unordered_map<uid_t, UidIoUsage> uidIoUsages({ in TEST()
329 const std::unordered_map<uid_t, UidIoUsage> uidIoUsages({ in TEST()
428 std::unordered_map<uid_t, UidIoUsage> uidIoUsages({ in TEST()
511 const std::unordered_map<uid_t, UidIoUsage> uidIoUsages( in TEST()