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: docs/platforms/apple/common/profiling/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ SentrySDK.start { options in
52
52
options.dsn = "___PUBLIC_DSN___"
53
53
options.tracesSampleRate = 1.0 // tracing must be enabled for profiling
54
54
options.profilesSampleRate = 1.0 // see also `profilesSampler` if you need custom sampling logic
55
-
options.profileAppLaunches = true // experimental new feature to start profiling in the pre-main launch phase
55
+
options.enableAppLaunchProfiling = true // experimental new feature to start profiling in the pre-main launch phase
56
56
}
57
57
```
58
58
@@ -63,7 +63,7 @@ SentrySDK.start { options in
63
63
options.dsn= @"___PUBLIC_DSN___";
64
64
options.tracesSampleRate= @1.0; // tracing must be enabled for profiling
65
65
options.profilesSampleRate= @1.0; // see also `profilesSampler` if you need custom sampling logic
66
-
options.profileAppLaunches=YES; // experimental new feature to start profiling in the pre-main launch phase
66
+
options.enableAppLaunchProfiling=YES; // experimental new feature to start profiling in the pre-main launch phase
67
67
}];
68
68
```
69
69
@@ -85,7 +85,7 @@ _(New in version 8.21.0)_
85
85
86
86
Normally, a profile can only be taken during a trace span after the SDK has been initialized. Now, you can configure the SDK to automatically profile certain app launches.
87
87
88
-
To set up launch profiling, configure the sample rates for traces and profiles with `SentrySDK.startWithOptions` to determine if the subsequent app launch should be automatically profiled. This allows you to gather information on what is going on in your app even before `main` is called, making it easier to diagnose issues with slow app launches.
88
+
To set up launch profiling, use the `enableAppLaunchProfiling` option and configure the sample rates for traces and profiles with `SentrySDK.startWithOptions` to determine if the subsequent app launch should be automatically profiled. This allows you to gather information on what is going on in your app even before `main` is called, making it easier to diagnose issues with slow app launches.
89
89
90
90
If you use `SentryOptions.tracesSampler` or `SentryOptions.profilesSampler`, it will be invoked after you call `SentrySDK.startWithOptions`, with `SentryTransactionContext.forNextAppLaunch` set to `true` indicating that it's evaluating a launch profile sampling decision. If instead you simply set `SentryOptions.tracesSampleRate` and `SentryOptions.profilesSampleRate`, those numerical rates will be used directly.
0 commit comments