sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Add memory info to low memory breadcrumb

Open barisyild opened this issue 2 years ago • 2 comments

Problem Statement

image

LOW_MEMORY does not provide enough information. Is it possible that low memory warnings contain detailed information about memory?

Solution Brainstorm

Things like memory usage may come up with the LOW_MEMORY warning.

Are you willing to submit a PR?

No response

barisyild avatar Dec 22 '23 13:12 barisyild

We could use the same approach as we already do for getting memory statistics for profiles https://github.com/getsentry/sentry-cocoa/blob/3297d6e29cd37151f68e9c605aea8b44e5e432cb/Sources/Sentry/SentryMetricProfiler.mm#L176-L177

philipphofmann avatar Dec 22 '23 13:12 philipphofmann

We could also add a memory footprint breadcrumb every x seconds for x seconds after receiving this warning, to see if the footprint goes down.

philipphofmann avatar Jan 25 '24 10:01 philipphofmann