commit | ab4d3fd6e2ec749bb7e0d32c8bf750c6e1f09721 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Thu Feb 06 11:24:56 2020 -0800 |
committer | Lakshman Annadorai <lakshmana@google.com> | Fri Feb 07 10:56:11 2020 -0800 |
tree | 59453a22cf9fec62ea261743480e7e227efb35d8 | |
parent | 42c0b5bb38f8fb2304df978681db728c44dad1f6 [diff] |
Add a collector for /proc/uid_io/stats and integrate it with IoPerfCollection. - /proc/uid_io/stats collector will be invoked by IoPerfCollection module on each collection. - Added unit tests to test the parsing and processing logics using temporary stats file. - Test to read the contents of the actual /proc/uid_io/stats is commented out as it fails due to insufficient SELinux privileges. After SELinux is updated to allow CarWatchDog to read the proc files, this test will be enabled. Bug: 148486340, 130382110 Test: Tested with unit tests. Change-Id: I64ccc25cab3913c7099cc8425abffd71b57a2d49
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.