firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

I want to add some information when the crash

Open leoxpx opened this issue 3 years ago • 3 comments

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

leoxpx avatar Dec 07 '22 13:12 leoxpx

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Dec 07 '22 13:12 google-oss-bot

not [[FIRCrashlytics crashlytics] logWithFormat:], It looks like a static parameter

leoxpx avatar Dec 07 '22 13:12 leoxpx

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.

rizafran avatar Dec 07 '22 18:12 rizafran

Hopefully this has a tie-in to MetricKit exit data for memory pressure.

https://developer.apple.com/documentation/metrickit/mxbackgroundexitdata/3566572-cumulativememorypressureexitcoun

SwiftNativeDeveloper avatar Oct 30 '23 20:10 SwiftNativeDeveloper

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.

morganchen12 avatar Oct 31 '23 21:10 morganchen12