Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 647ea2a0 authored by Yandry Perez Clemente's avatar Yandry Perez Clemente Committed by Automerger Merge Worker
Browse files

Merge "Log atom ANROccurredProcessingStarted" into sc-dev am: 996de53b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14690892

Change-Id: I4ada5b36b7d26a47d2aade786c72b6c9097cdc5f
parents 89c26e04 996de53b
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -272,6 +272,13 @@ class ProcessErrorStateRecord {
                errorId = null;
                errorId = null;
            }
            }


            // This atom is only logged with the purpose of triggering Perfetto and the logging
            // needs to happen as close as possible to the time when the ANR is detected.
            // Also, it needs to be logged after adding the error id to the trace, to make sure
            // the error id is present in the trace when the Perfetto trace is captured.
            FrameworkStatsLog.write(FrameworkStatsLog.ANR_OCCURRED_PROCESSING_STARTED,
                    mApp.processName);

            // Dump thread traces as quickly as we can, starting with "interesting" processes.
            // Dump thread traces as quickly as we can, starting with "interesting" processes.
            firstPids.add(pid);
            firstPids.add(pid);