Processing

Please wait...

Settings

Settings

Goto Application

1. WO2022160913 - METHOD AND APPARATUS FOR DETECTING APPLICATION FREEZING PROBLEM, AND DEVICE AND STORAGE MEDIUM

Publication Number WO/2022/160913
Publication Date 04.08.2022
International Application No. PCT/CN2021/133878
International Filing Date 29.11.2021
IPC
G06F 11/07 2006.1
GPHYSICS
06COMPUTING; CALCULATING OR COUNTING
FELECTRIC DIGITAL DATA PROCESSING
11Error detection; Error correction; Monitoring
07Responding to the occurrence of a fault, e.g. fault tolerance
CPC
G06F 11/0757
GPHYSICS
06COMPUTING; CALCULATING; COUNTING
FELECTRIC DIGITAL DATA PROCESSING
11Error detection; Error correction; Monitoring
07Responding to the occurrence of a fault, e.g. fault tolerance
0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
0751Error or fault detection not based on redundancy
0754by exceeding limits
0757by exceeding a time limit, i.e. time-out, e.g. watchdogs
Applicants
  • 北京字节跳动网络技术有限公司 BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD. [CN]/[CN]
Inventors
  • 丰亚东 FENG, Yadong
  • 白昆仑 BAI, Kunlun
Agents
  • 北京信远达知识产权代理有限公司 SINOTALEN ATTORNEYS AT LAW
Priority Data
202110112306.627.01.2021CN
Publication Language Chinese (zh)
Filing Language Chinese (ZH)
Designated States
Title
(EN) METHOD AND APPARATUS FOR DETECTING APPLICATION FREEZING PROBLEM, AND DEVICE AND STORAGE MEDIUM
(FR) PROCÉDÉ ET APPAREIL DE DÉTECTION DE PROBLÈME DE GEL D'APPLICATION, ET DISPOSITIF ET SUPPORT DE STOCKAGE
(ZH) 应用程序卡死问题的监测方法、装置、设备及存储介质
Abstract
(EN) The present disclosure relates to a method, and apparatus for detecting an application freezing problem, and a device and a storage medium. The method comprises: detecting time consumed for a Runloop in a first thread of an application executing a task; when it is detected that the consumed time reaches a preset threshold value, at least acquiring a call stack of the first thread and the current first execution state of the Runloop, and writing the call stack into a preset file; detecting an execution state of the Runloop after the time consumed for the task reaches the preset threshold value; and if the Runloop does not enter a second execution state after the first execution state before the application is closed, sending the preset file to a remote server. By means of the solution provided in the embodiments of the present disclosure, an application freezing problem can be identified and detected.
(FR) La présente invention concerne un procédé et un appareil de détection de problème de gel d'application, ainsi qu'un dispositif et un support de stockage. Le procédé comprend les étapes consistant à : détecter le temps consommé pour l'exécution d'une tâche par une boucle d'événements (Runloop) dans un premier fil d'une application ; lorsqu'il est détecté que le temps consommé atteint une valeur seuil prédéfinie, acquérir au moins une pile d'appels du premier fil et le premier état d'exécution courant de la boucle d'événements, et écrire la pile d'appels dans un fichier prédéfini ; détecter un état d'exécution de la boucle d'événements après que le temps consommé pour la tâche a atteint la valeur seuil prédéfinie ; et si la boucle d'événements ne passe pas dans un second état d'exécution après le premier état d'exécution avant que l'application ne soit fermée, envoyer le fichier prédéfini à un serveur à distance. Au moyen de la solution décrite dans les modes de réalisation de la présente invention, un problème de gel d'application peut être identifié et détecté.
(ZH) 本公开涉及一种应用程序卡死问题的监测方法、装置、设备及存储介质,其中该方法包括:监测应用程序第一线程中的Runloop执行任务的耗时;在监测到该耗时达到预设阈值时,至少获取第一线程的调用栈和Runloop当前的第一执行状态,并将所述调用栈写入预设文件;同时对Runloop在任务耗时达到预设阈值之后的执行状态进行监测;如果直到应用程序关闭,Runloop仍未进入第一执行状态之后的第二执行状态,则将预设文件发送给远端服务器。本公开实施例提供的方案能够对应用程序的卡死问题进行识别和监测。
Related patent documents
Latest bibliographic data on file with the International Bureau