commit | f9b47c2f764a6f9048107b5bc8df479291f86961 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Mon Feb 10 16:45:18 2020 -0800 |
committer | Lakshman Annadorai <lakshmana@google.com> | Wed Feb 12 16:57:47 2020 -0800 |
tree | 1b6e8331ad4fc9c7d0775dd63bcacc5c800cbc5e | |
parent | 16c89f0e75e9d2c8f0d047dadfc3c7b913f05249 [diff] |
Add a collector for /proc/stats and integrate it with IoPerfCollection. - /proc/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. - Added unit test to parse and process /proc/stat from device. Bug: 148486340, 130382110 Test: Tested with unit tests. Change-Id: Iabb3c344e5e2a318f2ec49364d90bdf10f056f2d
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.