android_system_core/libmeminfo
Sandeep Patil ba98e0e857 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.

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

Change-Id: I701808c3226bb9b3a350ccf8e67fb29b59b0d4e0
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-04-09 12:31:36 -07: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/procrank: Ignore failures when process disappears. 2019-04-09 12:31:36 -07: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 libmeminfo: Add libmeminfo to gather global and per-process memory stats 2018-11-05 10:42:46 -08:00
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 libmeminfo: Add libmeminfo to gather global and per-process memory stats 2018-11-05 10:42:46 -08:00
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