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

Commit 8e988f87 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Distinguish hot launch and relaunch in trace

Sync the trace name as metrics.

Bug: 172528316
Flag: EXEMPT correct trace name
Test: Enable trace.
      Launch an app which doesn't handle uiMode change.
      Return to home. Toggle dark theme.
      Launch the app again.
      The trace contains "launchingActivity#1:completed-relaunch:pkg".
Change-Id: Ief7f05f6094bde272dd0b4b78454343f11305122
parent d8aa9a2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ class ActivityMetricsLogger {
                    status = ":completed-same-process:";
                } else {
                    if (endInfo.mTransitionType == TYPE_TRANSITION_HOT_LAUNCH) {
                        status = ":completed-hot:";
                        status = !endInfo.mRelaunched ? ":completed-hot:" : ":completed-relaunch:";
                    } else if (endInfo.mTransitionType == TYPE_TRANSITION_WARM_LAUNCH) {
                        status = ":completed-warm:";
                    } else {