platform_system_core/libmeminfo
Erick Reyes 5a744684c3 libmeminfo: librank optimization using maps instead of vectors
librank was calling std::vector::find_if in nested loops when iterating
through processes and maps.

Changed the implementation to use std::map::insert, this resulted in
a significant improvement to execution speed.

Test: time librank on crosshatch

Before:  1m22.57s real     1m15.87s user     0m05.79s system
After:   0m03.85s real     0m00.88s user     0m02.92s system

Bug: 124523194

Change-Id: I2b519d0bfd7f7929c6c4c6c2374794cb1a744585
Signed-off-by: Erick Reyes <erickreyes@google.com>
2019-03-01 16:17:20 -08:00
..
include/meminfo meminfo: Add support to track working set with idle page tracking. 2019-01-23 22:53:46 -08:00
libdmabufinfo Merge "procinfo: Read inode number from /proc/<pid>/maps" 2019-02-15 23:03:00 +00:00
testdata1 meminfo: Add Smaps(), showmap and friends. 2019-01-08 17:08:10 -08:00
testdata2 libmeminfo: Add support to read zram memory consumption 2018-12-04 15:59:39 -08:00
tools libmeminfo: librank optimization using maps instead of vectors 2019-03-01 16:17:20 -08:00
vts Don't abort the build if a repo doesn't have the test/vts/tools/build/. 2019-02-08 08:47:12 +00:00
.clang-format
Android.bp meminfo: Remove libpagemap dependency 2019-01-28 15:05:52 -08:00
libmeminfo_benchmark.cpp meminfo: Pull ReadVmallocInfo() out of the SysMemInfo class. 2019-01-22 14:06:01 -08:00
libmeminfo_test.cpp meminfo: Remove libpagemap dependency 2019-01-28 15:05:52 -08:00
meminfo_private.h
OWNERS Add OWNERS file 2018-12-07 09:29:03 -08:00
pageacct.cpp meminfo: Add API to read pagemap for a vma within a process. 2019-01-21 17:24:54 -08:00
procmeminfo.cpp procinfo: Read inode number from /proc/<pid>/maps 2019-02-11 01:38:08 +00:00
sysmeminfo.cpp meminfo: Pull ReadVmallocInfo() out of the SysMemInfo class. 2019-01-22 14:06:01 -08:00