android_system_core/libmeminfo/tools
Sandeep Patil c4c05e3b25 libmeminfo/procrank: Ignore failures when process disappears.
procrank currently fails if a process gets killed while it is reading
the stats. This behavior is a regression from the previous version of
procrank and is often undesired.

Change procrank to silently ignore the process if it detects that it had
been killed while reading the stats. If the process is still around,
then print a warning about it and continue to read stats for other
processes in the system.

Fixes: 130177765
Test: Tested by deliberately killing specific process in ProcessRecord()
      constructor

Change-Id: I701808c3226bb9b3a350ccf8e67fb29b59b0d4e0
Merged-In: I701808c3226bb9b3a350ccf8e67fb29b59b0d4e0
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-04-10 08:01:06 -07: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 libmeminfo/procrank: Ignore failures when process disappears. 2019-04-10 08:01:06 -07: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