commit | c886af9821e1a2329c2493845de66cac6f3ba2d0 | [log] [tgz] |
---|---|---|
author | Rafal Slawik <rslawik@google.com> | Mon Oct 01 16:06:39 2018 +0100 |
committer | Rafal Slawik <rslawik@google.com> | Tue Oct 02 11:11:10 2018 +0100 |
tree | a56a825cc5193e4f7983013a5f6133ce5d612a54 | |
parent | 77460ad149639dab8711740aaa9e01a290e72e19 [diff] |
Fix: convert number of pages to bytes According to man proc(5), the 24th field in /proc/pid/stat is given in the number of pages (not bytes). Convert it to bytes by multiplying by the default page size in Android. Also, replace Long.valueOf with Long.parseLong to avoid auto-unboxing and wrap parsing in a try-catch where need. Change-Id: Ifb20120019bd962b6e8ce5b69d16853218f9575b Fix: 115639792 Test: atest MemoryStatUtilTest