Log activity_start_timestamp_millis in AppStartFullyDrawn.

Populate activity_start_timestamp_millis in AppStartFullyDrawn so that
it can be matched with AppStartOccurred.

Bug: 212815020
Test: atest hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/AppStartStatsTests.java
Change-Id: I27b3c268774c7bef095c8cb09ccf96747177d73f
This commit is contained in:
Alberto Gonzalez
2022-09-29 13:06:01 +00:00
parent d86e82b376
commit a27926ecdc

View File

@@ -1253,7 +1253,8 @@ class ActivityMetricsLogger {
info.mSourceEventDelayMs,
isIncremental,
isLoading,
info.mLastLaunchedActivity.info.name.hashCode());
info.mLastLaunchedActivity.info.name.hashCode(),
TimeUnit.NANOSECONDS.toMillis(info.mLaunchingState.mStartRealtimeNs));
// Ends the trace started at the beginning of this function. This is located here to allow
// the trace slice to have a noticable duration.