summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-06-25 17:30:56 -0700
committerChristopher Ferris <cferris@google.com>2019-06-25 21:14:36 -0700
commit6efce126c6ea24bc75cdae6d6d6c12953a965386 (patch)
treea8b9e2e89f5afe5a55b56678d6ef2975006bff0c /libutils/Unicode.cpp
parentc84d787ae83bcedb78b342e4f0a2b52b039067a0 (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 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions