Instabug collects UI hangs out of the box. You can disable/enable this using the following API.
APM.setAutoUITraceEnabled(true)
IBGAPM.UIHangsEnabled = NO;
APM.setUIHangEnabled(boolean disabled);
APM.setUIHangEnabled(boolean disabled)
// Enable
APM.setAutoUITraceEnabled(true);
// Disable
APM.setAutoUITraceEnabled(false);
// Enable Auto UI Traces
APM.setAutoUITraceEnabled(true);
// Disable Auto UI Traces
APM.setAutoUITraceEnabled(false);