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

Commit fd00dbc9 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Log atom ANROccurredProcessingStarted" into sc-dev am:...

Merge "Merge "Log atom ANROccurredProcessingStarted" into sc-dev am: 996de53b am: 98555e4f am: 2d1430d0"
parents 4c8472bc 8d14eae6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -272,6 +272,13 @@ class ProcessErrorStateRecord {
                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.
            firstPids.add(pid);