目录

Detecting Main Thread Jank Issues

When the main thread of an application executes a time-consuming task, the user perceives the application freezing. However, if the freezing duration does not reach the freezing time limit, no error will be logged, which is inconvenient for you to locate the fault. To address this issue, the system provides the task timeout detection mechanism to generate sampling call stack files or trace files, helping you locate and analyze the execution status of main thread tasks. You can use the HiAppEvent APIs to subscribe to main thread jank events to obtain the maintenance and testing information.