Out Of Memory
This is a preview API, available in 7.0.0-alpha.3. Features available in a preview API are still in-progress and may have bugs. We recognize the irony. The API may be renamed, changed, or removed in a future version. We welcome your feedback.
This integration tracks out-of-memory (OOM) crashes based on heuristics. This feature is available for iOS, tvOS, and Mac Catalyst and works only if the application was in the foreground.
When your application uses too much RAM, the operating system kills your app without a normal termination process. Your process doesn't receive a signal or any other type of information to ensure an OOM occurred. As a result, in the Apple SDK, we track out-of-memory crashes during the app start based on heuristics. If your app runs in the background, we can't reliably detect OOMs and don't report them. If you're interested in the implementation details, you can check out the code to find out more.
If you'd like to opt out of this feature, you can do so using options:
import Sentry
SentrySDK.start { options in
options.dsn = "https://examplePublicKey@o0.ingest.sentry.io/0"
options.enableOutOfMemoryTracking = false
}
- Package:
- cocoapods:sentry-cocoa
- Version:
- 6.2.1
- Repository:
- https://github.com/getsentry/sentry-cocoa