commit | 4875357ee85ec4760532aafaf8ff08d4c195da22 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Tue Sep 14 11:57:29 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Mon Sep 20 15:45:10 2021 -0700 |
tree | d71552e67642ac5b035cb723ebc48dcf13d31427 | |
parent | d9981a62e43f503e9d6fd5edf678ce81651a590b [diff] |
Update IoPerfCollection to use UidStatsCollector. - IoPerfCollection process performance data and reports them to bugreport. 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. - Refactor internal structs to cache user package stats for both I/O and proc stats. This makes easier to extend IoPerfCollection to process and report (to bugreport) memory and CPU stats in the future. - Update ProcStats struct field names to be similar to that of IoPerfCollection. Test: atest libwatchdog_test Bug: 199782126 Change-Id: I924d65b60e4b8c8eb41283b7c7f75bbe11aabb51
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.