You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platforms/apple/common/performance/instrumentation/automatic-instrumentation.mdx
+34-6Lines changed: 34 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -55,12 +55,6 @@ This feature is available for iOS, tvOS, and Mac Catalyst.
55
55
App Start Tracking is enabled by default once you <PlatformLink to="/performance/">set up performance monitoring</PlatformLink>. This feature provides insight into how long your application takes to launch. It adds spans for different phases, from the application launch to the first auto-generated UI transaction.
56
56
To enable this feature, enable `AutoUIPerformanceTracking`.
57
57
58
-
<Alert level="info" title="Important">
59
-
60
-
Starting with iOS 15, the system might [pre-warm](https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence#3894431) your app by creating the process before the user opens it. In such cases, we can't reliably measure the app start, so we drop it as of [sentry-cocoa 7.18.0](https://github.com/getsentry/sentry-cocoa/releases/tag/7.18.0). We are working on a fix for this. Follow the [GitHub issue](https://github.com/getsentry/sentry-cocoa/issues/1897) for more details.
61
-
62
-
</Alert>
63
-
64
58
The SDK differentiates between a cold and a warm start, but doesn't track hot starts/resumes.
65
59
66
60
* __Cold start__: App launched for the first time, after a reboot or update. The app is not in memory and no process exists.
@@ -75,6 +69,40 @@ The SDK uses the process start time as the beginning of the app start and the [`
75
69
76
70
Cold and warm start are Mobile Vitals, which you can learn about in the [full documentation](/product/performance/mobile-vitals).
77
71
72
+
### Prewarmed App Start Tracking
73
+
74
+
Starting with iOS 15, the system might [prewarm](https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence#3894431) your app by creating the process before the user opens it. In these cases, we won’t be able to reliably measure the app start. However, with [sentry-cocoa 7.31.0](https://github.com/getsentry/sentry-cocoa/releases/tag/7.31.0), we’ve introduced an `enablePreWarmedAppStartTracking` feature (still in its experimental phase), which allows us to collect prewarmed app starts.
75
+
76
+
Once enabled, the SDK drops the first app start span if prewarming pauses. This approach shortens the app start duration, but it accurately represents the span of time from when a user clicks the app icon to when the app is responsive.
77
+
With this feature, the SDK differentiates between four different app start types:
78
+
79
+
* __Non-prewarmed cold start__ (See _cold start_ definition above.)
80
+
* __Non-prewarmed warm start__ (See _warm start_ definition above.)
81
+
* __Prewarmed cold start__
82
+
* __Prewarmed warm start__
83
+
84
+
You can filter for different app start types in [Discover](/product/discover-queries/) with `app_start_type:cold.prewarmed`, `app_start_type:warm.prewarmed`, `app_start_type:cold`, and `app_start_type:warm`.
0 commit comments