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

Commit 547c22d4 authored by Mark Hansen's avatar Mark Hansen
Browse files

Add extra help for dumpsys meminfo --unreachable, --logstats

And add --help as a common synonym for -h, to make things a little friendlier.

Change-Id: I507497b63f12721bad8a93f0c31b988ed0433223
parent 7e3b5f57
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12098,7 +12098,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                opts.dumpProto = true;
            } else if ("--logstats".equals(opt)) {
                opts.mDumpAllocatorStats = true;
            } else if ("-h".equals(opt)) {
            } else if ("-h".equals(opt) || "--help".equals(opt)) {
                pw.println("meminfo dump options: [-a] [-d] [-c] [-s] [--oom] [process]");
                pw.println("  -a: include all available information for each process.");
                pw.println("  -d: include dalvik details.");
@@ -12112,6 +12112,8 @@ public class ActivityManagerService extends IActivityManager.Stub
                pw.println("             processes that have loaded that package.");
                pw.println("  --checkin: dump data for a checkin");
                pw.println("  --proto: dump data to proto");
                pw.println("  --logstats: log native allocator statistics.");
                pw.println("  --unreachable: dump unreachable native memory with libmemunreachable.");
                pw.println("If [process] is specified it can be the name or ");
                pw.println("pid of a specific process to dump.");
                return;