Copy predump file's output in case of timeout
Don't retry on predump timeout, as retrying fails. Instead, copy debuggerd_client's original message from the temporary dump file. Bug: 286861949 Test: manually tested Change-Id: If8e81a46cd42abe07cc6c392028e5efb0cb902d6
This commit is contained in:
@@ -392,11 +392,9 @@ public class StackTracesDumpHelper {
|
||||
if (TEMP_DUMP_TIME_LIMIT <= timeTaken) {
|
||||
Slog.e(TAG, "Aborted stack trace dump (current primary pid=" + pid
|
||||
+ "); deadline exceeded.");
|
||||
tmpTracesFile.delete();
|
||||
if (latencyTracker != null) {
|
||||
latencyTracker.dumpStackTracesTempFileTimedOut();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (DEBUG_ANR) {
|
||||
Slog.d(TAG, "Done with primary pid " + pid + " in " + timeTaken + "ms"
|
||||
|
||||
Reference in New Issue
Block a user