US 12,450,116 B2
Method and apparatus for detecting application freezing problem, and device and storage medium
Yadong Feng, Beijing (CN); and Kunlun Bai, Beijing (CN)
Assigned to BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
Appl. No. 18/256,954
Filed by BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
PCT Filed Nov. 29, 2021, PCT No. PCT/CN2021/133878
§ 371(c)(1), (2) Date Jun. 12, 2023,
PCT Pub. No. WO2022/160913, PCT Pub. Date Aug. 4, 2022.
Claims priority of application No. 202110112306.6 (CN), filed on Jan. 27, 2021.
Prior Publication US 2024/0036969 A1, Feb. 1, 2024
Int. Cl. G06F 11/07 (2006.01)
CPC G06F 11/0793 (2013.01) [G06F 11/079 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A method for monitoring application freezing problem, comprising:
monitoring time consumption for executing a task by a message loop mechanism (Runloop), in a first thread of an application, wherein the application is an application carried in an iOS system;
acquiring a call stack of the first thread and a current first execution state of the Runloop, in a case that it is monitored that the time consumption reaches a preset threshold;
monitoring an execution state of the Runloop after the time consumption reaches the preset threshold; and
sending the call stack of the first thread to a remote server, in a case that the Runloop does not enter a second execution state after the first execution state until the application is closed.