Add a collector for per-process/per-thread stats.

- ProcPidStat collector will be integrated with IoPerfCollection in the
following CL.
- Added unit tests to test the scanning and parsing logics.
- Added unit tests to scan and parse the /proc directory from the device
but this test is commented as CarWatchDog doesn't have required SELinux
permission to read the /proc/PID directories.

Already approved in ag/10353452.

Bug: 148486340, 130382110
Test: Tested with unit tests.
Change-Id: I31aa63a109aed0361538bdb9c2a8ff5cd823dd5c
5 files changed
tree: 0a8254595ea13d97686580821acbecf9d02c5038
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-lib/
  4. car-maps-placeholder/
  5. car-systemtest-lib/
  6. car-test-lib/
  7. car-usb-handler/
  8. car_product/
  9. computepipe/
  10. EncryptionRunner/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. tests/
  18. tools/
  19. user/
  20. vehicle-hal-support-lib/
  21. watchdog/
  22. .clang-format
  23. .gitignore
  24. Android.mk
  25. CleanSpec.mk
  26. CPPLINT.cfg
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
README.md

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.