Merge "Fix side effects of trace-ipc and dumpheap commands" into rvc-dev am: 0e1054f01e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14982902 Change-Id: I52cbcd6b7f63706a83e5108537699b4595c3697f
This commit is contained in:
@@ -940,8 +940,6 @@ final class ActivityManagerShellCommand extends ShellCommand {
|
|||||||
String logNameTimeString = LOG_NAME_TIME_FORMATTER.format(localDateTime);
|
String logNameTimeString = LOG_NAME_TIME_FORMATTER.format(localDateTime);
|
||||||
heapFile = "/data/local/tmp/heapdump-" + logNameTimeString + ".prof";
|
heapFile = "/data/local/tmp/heapdump-" + logNameTimeString + ".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");
|
||||||
@@ -949,6 +947,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