diff --git a/docs/platforms/apple/common/index.mdx b/docs/platforms/apple/common/index.mdx index 3caf1f19e63c9..ee57f10b9e7ed 100644 --- a/docs/platforms/apple/common/index.mdx +++ b/docs/platforms/apple/common/index.mdx @@ -87,7 +87,7 @@ To capture all errors, initialize the SDK as soon as possible, such as in your ` -```swift {tabTitle:Swift} {"onboardingOptions": {"performance": "13-16", "profiling": "18-28"}} +```swift {tabTitle:Swift} {"onboardingOptions": {"performance": "13-16", "profiling": "18-28,32-38"}} import Sentry func application(_ application: UIApplication, @@ -119,6 +119,13 @@ func application(_ application: UIApplication, return true } + +// Start continuous profiling when the app becomes active again. +// +// This is optional, and you can start and stop the profiler as needed. +func applicationDidBecomeActive(_ application: UIApplication) { + SentrySDK.startProfiler() +} ``` ```objc {tabTitle:Objective-C} {"onboardingOptions": {"performance": "12-15", "profiling": "17-27"}}