OSDN Git Service

Whitelist processes for NativeProcessMemoryState.
authorRafal Slawik <rslawik@google.com>
Wed, 17 Oct 2018 17:19:43 +0000 (18:19 +0100)
committerRafal Slawik <rslawik@google.com>
Thu, 18 Oct 2018 11:57:36 +0000 (12:57 +0100)
Expand the whitelist for capturing NativeProcessMemoryState with
processes that are monitored in Watchdog and few new daemons.

Bug: 115968899
Test: manually verified that they are included in statsd report
Change-Id: I1cb07a6a6e8cc206a5d7cb68b8258a5816828450

services/core/java/com/android/server/am/MemoryStatUtil.java

index 23ae77d..85ee7e6 100644 (file)
@@ -46,6 +46,27 @@ final class MemoryStatUtil {
     static final String[] MEMORY_STAT_INTERESTING_NATIVE_PROCESSES = new String[]{
             "/system/bin/statsd",  // Stats daemon.
             "/system/bin/surfaceflinger",
+            "/system/bin/apexd",  // APEX daemon.
+            "/system/bin/audioserver",
+            "/system/bin/cameraserver",
+            "/system/bin/drmserver",
+            "/system/bin/healthd",
+            "/system/bin/incidentd",
+            "/system/bin/installd",
+            "/system/bin/lmkd",  // Low memory killer daemon.
+            "/system/bin/logd",
+            "media.codec",
+            "media.extractor",
+            "media.metrics",
+            "/system/bin/mediadrmserver",
+            "/system/bin/mediaserver",
+            "/system/bin/performanced",
+            "/system/bin/tombstoned",
+            "/system/bin/traced",  // Perfetto.
+            "/system/bin/traced_probes",  // Perfetto.
+            "webview_zygote",
+            "zygote",
+            "zygote64",
     };
 
     static final int BYTES_IN_KILOBYTE = 1024;