commit | c12e8c6f7eb5d05beb9931130876fc70bf486116 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Tue Sep 14 12:08:43 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Mon Sep 20 15:45:16 2021 -0700 |
tree | 756e714c346ce42e4d3622fbe562ba92dec29055 | |
parent | 4875357ee85ec4760532aafaf8ff08d4c195da22 [diff] |
Update IoOveruseMonitor to use UidStatsCollector. - IoOveruseMonitor process per-UID I/O stats and detects I/O overuse. Update this class to use UidStatsCollector instead of directly using process or I/O stats collectors. - Remove the logic to resolve package/service name from UID because this is already done by UidStatsCollector. - Address some minor nits in IoOveruseMonitor. Test: atest libwatchdog_test Bug: 199782126 Change-Id: I74dfc03204ebd72b3404da8b9efe3210eb146338
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.