Are the Hangs Collected by MetricKit All Longer Than One Second?

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.

  1. Does MetricKit only collect hang data for hangs longer than 1 second?
  2. Can this threshold be adjusted, for example, to 500ms?
  3. 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.

I also have this question.

I know we have the hang report when hangs over than one second.

When the main thread is unresponsive for 1 s or longer, the system also samples the app to capture a backtrace profile, highlighting where the app is spending its time during the hang.

https://developer.apple.com/documentation/xcode/analyzing-responsiveness-issues-in-your-shipping-app#Analyze-hang-reports-to-determine-a-course-of-action

but we don’t have the evidence that the MetricKit log also only have the logs over one second as well.

Do we have any way to have the logs and call stack less than one second?

Are the Hangs Collected by MetricKit All Longer Than One Second?
 
 
Q