platform_system_core/libmeminfo/tools
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
..
Android.bp meminfo: Add support to track working set with idle page tracking. 2019-01-23 22:53:46 -08:00
librank.cpp libmeminfo: librank optimization using maps instead of vectors 2019-03-01 16:17:20 -08:00
procmem.cpp meminfo: Remove unnecessary working set stats 2019-01-14 09:42:50 -08:00
procrank.cpp meminfo: Remove unnecessary working set stats 2019-01-14 09:42:50 -08:00
showmap.cpp meminfo: Add Smaps(), showmap and friends. 2019-01-08 17:08:10 -08:00
wsstop.cpp meminfo: Add support to track working set with idle page tracking. 2019-01-23 22:53:46 -08:00