tools/android: Estimate the footprint of a process.
Private memory footprint does not accurately reflect the additional footprint of
a child process, as it does not account for page tables or shared memory for
instance, but it includes memory footprint inherited (and shared with) the
This makes a few assumptions to compute the memory footprint that are detailed
in the code, and would be most accurate on a high-memory device shortly after
the process is created, to make sure not to undercount swap.
Reviewed-by: Matthew Cary (CET) <email@example.com>
Reviewed-by: Egor Pasko <firstname.lastname@example.org>
Commit-Queue: Benoit L <email@example.com>
1 file changed