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**File to include**: <hicollie/hicollie.h> 13 14**Since**: 12 15 16**Related module**: [HiCollie](_hi_hicollie.md) 17 18 19## Summary 20 21 22### Functions 23 24| Name| Description| 25| -------- | -------- | 26| 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. | 27| 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 process event. | 28| 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. | 29