Merge "Avoid printing the durations array twice on early dump copy failure" into udc-dev

This commit is contained in:
Mohamad Mahmoud
2023-06-14 16:43:21 +00:00
committed by Android (Google) Code Review

View File

@@ -229,7 +229,7 @@ public class StackTracesDumpHelper {
firstPidEnd = new File(tracesFile).length();
}
// Append the Durations/latency comma separated array after the first PID.
if (latencyTracker != null) {
if (firstPidTempDumpCopied && latencyTracker != null) {
appendtoANRFile(tracesFile,
latencyTracker.dumpAsCommaSeparatedArrayWithHeader());
}