diff options
| author | Christopher Ferris <cferris@google.com> | 2019-06-25 17:30:56 -0700 |
|---|---|---|
| committer | Christopher Ferris <cferris@google.com> | 2019-06-25 21:14:36 -0700 |
| commit | 7f8915c76e232dd228930e749ec289d10c547f85 (patch) | |
| tree | a8b9e2e89f5afe5a55b56678d6ef2975006bff0c /base/errors_unix.cpp | |
| parent | c0349199db745ee53e8d1133ddfce57fccc69cc7 (diff) | |
Cache only a small portion of page map data.
The scudo memory allocator will allocate a large virtual memory address
that causes procrank to allocate a huge amount of data. Modify so it
caches the data a bit at a time.
Remove some allocations that are not necessary since the data is only used
in the first loop.
Fix a few pread64 checks against the actual bytes read, rather than the
read is < 0.
Fix sort by rss in procrank.
Bug: 135694447
Test: Ran unit tests (only one unit test actually runs the modified code).
Test: Ran the old version of procrank using a static libmeminfo and verified
Test: that the same data is found as the new version.
Change-Id: I8adc169b5607ec994ff13a9e161a479350d84c4d
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
