I want to add some information when the crash
Description
I want to add some information when the crash, like how much memory the APP is currently using. I plan to cache the memory usage per second in the last 10 seconds to determine if OOM is the cause of the crash. Is there such an API?
API Proposal
No response
Firebase Product(s)
Crashlytics
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
not [[FIRCrashlytics crashlytics] logWithFormat:], It looks like a static parameter
Thanks for raising this, @leoxpx. I agree that providing information about a crash report such as app memory usage is a great feature. Per checking, I found out that there's an existing related feature request internally, and as an action, I'll add this ticket as a +1 to the request. Also, while I’m unable to provide any specific timelines as of the moment, adding a thumbs up on this feature can help our engineers prioritize adding this to the roadmap. Thanks again.
Hopefully this has a tie-in to MetricKit exit data for memory pressure.
https://developer.apple.com/documentation/metrickit/mxbackgroundexitdata/3566572-cumulativememorypressureexitcoun
In the meantime, you can log a non-fatal event when this method is called to give you an idea of whether or not your app is regularly under high memory pressure.