From c749e15a2b5ba498edb61feb4cbd2ccd595d093d Mon Sep 17 00:00:00 2001 From: Rafal Slawik Date: Wed, 17 Oct 2018 18:19:43 +0100 Subject: [PATCH] Whitelist processes for NativeProcessMemoryState. 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 --- .../com/android/server/am/MemoryStatUtil.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/services/core/java/com/android/server/am/MemoryStatUtil.java b/services/core/java/com/android/server/am/MemoryStatUtil.java index 23ae77d9a7567..85ee7e65ffe78 100644 --- a/services/core/java/com/android/server/am/MemoryStatUtil.java +++ b/services/core/java/com/android/server/am/MemoryStatUtil.java @@ -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;