Report breakdown of Microdroid userspace memory usage

Dump the list of running processes in Microdroid using 'ps -A' and their
memory usage statistics from '/proc/<pid>/smaps_rollup', and report them
as metrics. Do the same for '/proc/meminfo'.

This requires root, so it is done from the host-side Microdroid tests.
Not ideal approach as the reported stats include adbd and its children,
but it is a useful set of data nonetheless.

Test: atest MicrodroidHostTestCases
Change-Id: I24368f7e647a083488ff0d9f485e618876d27f3a
1 file changed
tree: 6e828d7c0861a8e533cc5affaef670acad55b0d2
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. avmd/
  6. compos/
  7. demo/
  8. docs/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmbase/
  20. vmclient/
  21. zipfuse/
  22. .clang-format
  23. .gitignore
  24. Android.bp
  25. OWNERS
  26. PREUPLOAD.cfg
  27. README.md
  28. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.