1# hicollie.h 2 3 4## Overview 5 6Defines APIs for debugging. 7 8**Library**: libohhicollie.so 9 10**System capability**: SystemCapability.HiviewDFX.HiCollie 11 12 13**Since**: 12 14 15**Related module**: [HiCollie](_hi_hicollie.md) 16 17 18## Summary 19 20 21### Functions 22 23| Name| Description| 24| -------- | -------- | 25| HiCollie_ErrorCode [OH_HiCollie_Init_StuckDetection](_hi_hicollie.md#oh_hicollie_init_stuckdetection)(OH_HiCollie_Task task) | Registers a callback to periodically detect service thread stuck events. | 26| HiCollie_ErrorCode [OH_HiCollie_Init_JankDetection](_hi_hicollie.md#oh_hicollie_init_jankdetection)(OH_HiCollie_BeginFunc\* beginFunc, OH_HiCollie_EndFunc\* endFunc, HiCollie_DetectionParam param) | Registers a callback to detect service thread jank events. To monitor service thread jank events, you can implement two callbacks as instrumentation functions, placing them before and after the service thread processes the event. | 27| HiCollie_ErrorCode [OH_HiCollie_Report](_hi_hicollie.md#oh_hicollie_report)(bool\* isSixSecond) | Reports service thread stuck events and generates timeout logs to help locate application timeout events. | 28