getsentry / getsentry/sentry-cocoa

Attach memory info to watchdog terminations

Open
#4,003 5 comments 0 reactions 1 assignee Claimed by @itaybre View on GitHub
Cocoa Errors Feature Waiting for: Community
Dominant language
Swift
Stars
1.1k
Forks
418
Avg merge
2d 3h
Merged PRs (30d)
106

Description

### Description

The Sentry SDK could sample the memory information once every x seconds and store it with the [app state](https://github.com/getsentry/sentry-cocoa/blob/main/Sources/Sentry/SentryAppStateManager.m) on a bg thread and report that information when a watchdog termination occurs. Then, users would know if the watchdog termination was due to an OOM. This only works for OOMs that slowly add up and not for high spikes in memory pressure.

Related to https://github.com/getsentry/sentry-cocoa/issues/2514, https://github.com/getsentry/sentry-cocoa/issues/3890 and https://github.com/getsentry/sentry-cocoa/issues/3518.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.