When are the "Time To First Draw" values recorded?

histogrammedOptimizedTimeToFirstDraw and histogrammedTimeToFirstDraw are both described as the "time taken to launch the app" with/without pre-warming. But, after we measured these values in production, we found them to be very similar, maybe a few hundred milliseconds apart.

We expected the pre-warmed, or hot launches, to be far faster than the cold launches since the docs state that pre-warmed builds execute an app’s launch sequence up until, but not including when main() calls UIApplicationMain().

Which leads me to ask, what do these values truly represent?

When in the launch cycle of an app are they captured?

Thank you!

Post not yet marked as solved Up vote post of FilipBusic Down vote post of FilipBusic
1.2k views
  • Correction;

    The 90th percentile between optimized TTD and normal TTD differed by +- 20ms. The 50th percentile differed by +- 50ms. The overall launch time was still ~1s total, which means that a "hot launch" was technically only ~50ms faster (0.95s vs. 1s).

Add a Comment

Replies

-- see comment