Merge "Fix side effects of trace-ipc and dumpheap commands" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
956fe588a7
@@ -912,8 +912,6 @@ final class ActivityManagerShellCommand extends ShellCommand {
|
|||||||
t.set(System.currentTimeMillis());
|
t.set(System.currentTimeMillis());
|
||||||
heapFile = "/data/local/tmp/heapdump-" + t.format("%Y%m%d-%H%M%S") + ".prof";
|
heapFile = "/data/local/tmp/heapdump-" + t.format("%Y%m%d-%H%M%S") + ".prof";
|
||||||
}
|
}
|
||||||
pw.println("File: " + heapFile);
|
|
||||||
pw.flush();
|
|
||||||
|
|
||||||
// Writes an error message to stderr on failure
|
// Writes an error message to stderr on failure
|
||||||
ParcelFileDescriptor fd = openFileForSystem(heapFile, "w");
|
ParcelFileDescriptor fd = openFileForSystem(heapFile, "w");
|
||||||
@@ -921,6 +919,9 @@ final class ActivityManagerShellCommand extends ShellCommand {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw.println("File: " + heapFile);
|
||||||
|
pw.flush();
|
||||||
|
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
|
||||||
final RemoteCallback finishCallback = new RemoteCallback(new OnResultListener() {
|
final RemoteCallback finishCallback = new RemoteCallback(new OnResultListener() {
|
||||||
|
|||||||
Reference in New Issue
Block a user