I have integrated MetricKit into my production app and listening for the corresponding callback
func didReceive(_ payloads: [MXDiagnosticPayload])
After some time, I've noticed that the hang diagnostics data collected are all for hangs longer than 1 second.
Does MetricKit only collect hang data for hangs longer than 1 second?
Can this threshold be adjusted, for example, to 500ms?
Is there any sampling involved in the collection of hang diagnostics? The number of hang events collected by MetricKit is significantly lower compared to other third-party platforms.
Thank you for your response, this is very important to me.
Post
Replies
Boosts
Views
Activity
var dic: [String: String] = [:]
Use Xcode 15 to run the above code on iOS 11 and 12, and it will crash when SWIFT_OPTIMIZATION_LEVEL = -O is set.
But SWIFT_OPTIMIZATION_LEVEL = -Onone doesn't crash.