Revert "Add launch type in activity startup trace"

This reverts commit fac9803757.

Reason for revert: b/248319876

Change-Id: I44f37bf16192384442926d9ae0ed344cce5be450
This commit is contained in:
Gopinath Elanchezhian
2022-09-22 19:52:46 +00:00
parent fac9803757
commit eb72bfe90a

View File

@@ -231,21 +231,9 @@ class ActivityMetricsLogger {
if (mAssociatedTransitionInfo == null) {
launchResult = ":failed";
} else {
final String status;
if (abort) {
status = ":canceled:";
} else if (!mAssociatedTransitionInfo.mProcessSwitch) {
status = ":completed-same-process:";
} else {
if (endInfo.mTransitionType == TYPE_TRANSITION_HOT_LAUNCH) {
status = ":completed-hot:";
} else if (endInfo.mTransitionType == TYPE_TRANSITION_WARM_LAUNCH) {
status = ":completed-warm:";
} else {
status = ":completed-cold:";
}
}
launchResult = status + mAssociatedTransitionInfo.mLastLaunchedActivity.packageName;
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.
Trace.instant(Trace.TRACE_TAG_ACTIVITY_MANAGER, mTraceName + launchResult);