Change dump priority for meminfo

- change meminfo dump priority to HIGH (temp workaround until parallel dump is implemented)
- pass in -a args to meminfo dump

Bug: 27429130
Test: Manual verification
Test: https://docs.google.com/a/google.com/spreadsheets/d/1tbTWM7DD2nJd-3F1kMYZRiCFOUOnhhXOEk51SmJg9-A/edit?usp=sharing

Change-Id: I069e814049efe6bb9acba7e9c1889ffd789d287b
This commit is contained in:
Vishnu Nair
2017-11-22 14:14:41 -08:00
parent 3daba14f25
commit 77aab7c052

View File

@@ -2494,7 +2494,7 @@ public class ActivityManagerService extends IActivityManager.Stub
DUMP_FLAG_PRIORITY_CRITICAL | DUMP_FLAG_PRIORITY_NORMAL | DUMP_FLAG_PROTO);
ServiceManager.addService(ProcessStats.SERVICE_NAME, mProcessStats);
ServiceManager.addService("meminfo", new MemBinder(this), /* allowIsolated= */ false,
DUMP_FLAG_PRIORITY_HIGH | DUMP_FLAG_PRIORITY_NORMAL);
DUMP_FLAG_PRIORITY_HIGH);
ServiceManager.addService("gfxinfo", new GraphicsBinder(this));
ServiceManager.addService("dbinfo", new DbBinder(this));
if (MONITOR_CPU_USAGE) {
@@ -2552,9 +2552,15 @@ public class ActivityManagerService extends IActivityManager.Stub
private final PriorityDump.PriorityDumper mPriorityDumper =
new PriorityDump.PriorityDumper() {
@Override
public void dumpNormal(FileDescriptor fd, PrintWriter pw, String[] args,
public void dumpHigh(FileDescriptor fd, PrintWriter pw, String[] args,
boolean asProto) {
if (asProto) return;
mActivityManagerService.dumpApplicationMemoryUsage(fd,
pw, " ", new String[] {"-a"}, false, null);
}
@Override
public void dump(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) {
if (asProto) return;
mActivityManagerService.dumpApplicationMemoryUsage(fd, pw, " ", args, false, null);
}
};