Lines Matching refs:usage
747 const Result<std::unordered_map<uint32_t, UidIoUsage>>& usage = mUidIoStats->collect(); in collectUidIoPerfDataLocked() local
748 if (!usage) { in collectUidIoPerfDataLocked()
749 return Error() << "Failed to collect uid I/O usage: " << usage.error(); in collectUidIoPerfDataLocked()
758 for (const auto& uIt : *usage) { in collectUidIoPerfDataLocked()
807 for (const auto& usage : topNReads) { in collectUidIoPerfDataLocked() local
808 if (usage->ios.isZero()) { in collectUidIoPerfDataLocked()
814 .userId = multiuser_get_user_id(usage->uid), in collectUidIoPerfDataLocked()
815 .packageName = std::to_string(usage->uid), in collectUidIoPerfDataLocked()
816 .bytes = {usage->ios.metrics[READ_BYTES][FOREGROUND], in collectUidIoPerfDataLocked()
817 usage->ios.metrics[READ_BYTES][BACKGROUND]}, in collectUidIoPerfDataLocked()
818 .fsync = {usage->ios.metrics[FSYNC_COUNT][FOREGROUND], in collectUidIoPerfDataLocked()
819 usage->ios.metrics[FSYNC_COUNT][BACKGROUND]}, in collectUidIoPerfDataLocked()
821 if (mUidToPackageNameMapping.find(usage->uid) != mUidToPackageNameMapping.end()) { in collectUidIoPerfDataLocked()
822 stats.packageName = mUidToPackageNameMapping[usage->uid]; in collectUidIoPerfDataLocked()
832 for (const auto& usage : topNWrites) { in collectUidIoPerfDataLocked() local
833 if (usage->ios.isZero()) { in collectUidIoPerfDataLocked()
839 .userId = multiuser_get_user_id(usage->uid), in collectUidIoPerfDataLocked()
840 .packageName = std::to_string(usage->uid), in collectUidIoPerfDataLocked()
841 .bytes = {usage->ios.metrics[WRITE_BYTES][FOREGROUND], in collectUidIoPerfDataLocked()
842 usage->ios.metrics[WRITE_BYTES][BACKGROUND]}, in collectUidIoPerfDataLocked()
843 .fsync = {usage->ios.metrics[FSYNC_COUNT][FOREGROUND], in collectUidIoPerfDataLocked()
844 usage->ios.metrics[FSYNC_COUNT][BACKGROUND]}, in collectUidIoPerfDataLocked()
846 if (mUidToPackageNameMapping.find(usage->uid) != mUidToPackageNameMapping.end()) { in collectUidIoPerfDataLocked()
847 stats.packageName = mUidToPackageNameMapping[usage->uid]; in collectUidIoPerfDataLocked()