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

Commit a55436d3 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Distinguish process-switch for launch trace

So the perfetto processor won't recognize in-app transition
as an app startup.

Bug: 231612200
Test: Launch Settings from launcher and enter sub settings.
      There will be 2 "launching: com.android.settings" but
      only one trace at "Android App Startups".
Change-Id: I14a4fc1981e69dd27e2a5027f519db2dab4fff9f
parent 659341ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -212,7 +212,8 @@ class ActivityMetricsLogger {
            if (mAssociatedTransitionInfo == null) {
                launchResult = ":failed";
            } else {
                launchResult = (abort ? ":canceled:" : ":completed:")
                launchResult = (abort ? ":canceled:" : mAssociatedTransitionInfo.mProcessSwitch
                        ? ":completed:" : ":completed-same-process:")
                        + mAssociatedTransitionInfo.mLastLaunchedActivity.packageName;
            }
            // Put a supplement trace as the description of the async trace with the same id.