(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仍未进入第一执行状态之后的第二执行状态,则将预设文件发送给远端服务器。本公开实施例提供的方案能够对应用程序的卡死问题进行识别和监测。