commit | 91b9e231fa423501f77cf77dd88215d36b214060 | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Fri Dec 06 22:28:12 2019 -0800 |
committer | Jing Ji <jji@google.com> | Mon Dec 23 19:19:54 2019 -0800 |
tree | 617a3ee579460f48722247dc8a0f38987b2971d6 | |
parent | 56eb64faef3f3157c41811c698d894eebc45adf2 [diff] |
Skip meminfo item for the gone processes Fix race conditions that processes could get killed during meminfo dump. Also fixed various other issues with meminfo dump Bug: 144503238 Test: Insert the below code before retrieving process meminfo, and then set a pid, run dumpsys meminfo, check the output. if (SystemProperties.getBoolean("sys.fake-kill." + pid, false)) { Process.killProcess(pid); Thread.sleep(1000); } Change-Id: I96436800ce218309cc5fd8a21c35ad29584faf6f