Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c749e15a authored by Rafal Slawik's avatar Rafal Slawik
Browse files

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
parent 36994695
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -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;