platform_system_core/libmeminfo/include/meminfo
Christopher Ferris 504d2cce64 Optimize code that only uses PageMap call.
Some code only wants to use PageMap to determine whether pages are
mapped in to memory. Modify the code to optimize this path.

Changes:
- Add a function that doesn't read all of usage stats data for every
  map. This operation is extremely expensive, and some code doesn't
  care about it.
- Optimize the PageMap call to do a single read instead of a single
  read per page.
- Add unit tests for these changes.

Bug: 136245508

Test: Ran new unit tests.
Test: Ran procrank and verified data looks good.
Test: Ran DexDiag art tests.
Change-Id: I37d03f2584551d26cb20be3abacdb958111d4eca
2019-07-12 16:28:09 -07:00
..
meminfo.h meminfo: Remove unnecessary working set stats 2019-01-14 09:42:50 -08:00
pageacct.h meminfo: Add API to read pagemap for a vma within a process. 2019-01-21 17:24:54 -08:00
procmeminfo.h Optimize code that only uses PageMap call. 2019-07-12 16:28:09 -07:00
sysmeminfo.h meminfo: Pull ReadVmallocInfo() out of the SysMemInfo class. 2019-01-22 14:06:01 -08:00