Application program display anomaly detection method and device, and storage medium
By installing an anomaly detection plugin, the time difference between application startup and page rendering is obtained. Combined with device information and the number of components, display anomalies are identified, solving the problem of difficulty in identifying application black screens in existing technologies and improving the user experience.
Patent Information
- Application Number
- CN202211009539.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-08-22
AI Technical Summary
The existing technology lacks an effective criterion to determine whether an application has a black screen phenomenon, which affects the user experience, and it is difficult to measure whether the black screen phenomenon will still occur after optimization.
Install an anomaly detection plugin to obtain the time difference between application startup and page rendering. By comparing the time difference with a preset threshold, anomalies are identified and displayed, and anomaly information is generated and reported to the detection system. The system then analyzes the anomalies in conjunction with device information and the number of components.
It simplifies the detection process for application display anomalies, helping developers quickly identify and take action to improve the user experience.
Smart Images

Figure CN115373987B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet, and in particular to an application program display anomaly detection method and device, a storage medium and a computer device. BACKGROUND
[0002] With the increasing number of APPs (Application, application programs) in mobile terminals in today's society, the number of users is also increasing, and users begin to pay attention to beautification, which sometimes causes the APP to appear a short black screen during startup. For users who pay attention to experience, if they encounter a lot of black screens, they will naturally uninstall the application that causes the black screen. In the prior art, there is no criterion for determining whether an APP is black, so it is difficult to measure which needs to be optimized, and whether the black screen phenomenon will still occur after optimization. How to quickly determine whether the APP has a black screen phenomenon when it is opened is a problem that needs to be solved at present. SUMMARY
[0003] Therefore, the present application provides an application program display anomaly detection method and device, a storage medium and a computer device, which helps developers to analyze display anomalies and take appropriate measures to improve user experience.
[0004] According to an aspect of the present application, an application program display anomaly detection method is provided, which comprises:
[0005] installing an anomaly detection plug-in and configuring the anomaly detection plug-in to be referenced when an application program starts;
[0006] in response to a startup instruction of any application program, determining a startup entry of the application program by using the anomaly detection plug-in, and obtaining a first time when the startup entry starts the application program;
[0007] rendering and displaying a startup page of the application program, and obtaining a second time when the startup page is displayed;
[0008] identifying whether the startup page of the application program has a display anomaly according to the first time and the second time.
[0009] Optionally, the step of identifying whether the application program has a display anomaly according to the first time and the second time specifically comprises:
[0010] calculating a first time difference between the second time and the first time, and determining the first time difference as a first opening time of the startup page;
[0011] if the first opening time is greater than a preset first anomaly threshold, it is determined that the startup page of the application program has a display anomaly.
[0012] Correspondingly, after the application program is determined to have display abnormality, the method further includes:
[0013] obtaining device information of the current client;
[0014] generating first program abnormality information according to the application program information, the device information of the current client and the first opening time, and reporting the first program abnormality information to an abnormality detection system corresponding to the abnormality detection plug-in.
[0015] Optionally, after the start page of the application program is rendered and displayed, the method further includes:
[0016] in response to a viewing instruction for a target page in the application program, obtaining target page rendering data and recording a third time;
[0017] rendering and displaying the target page according to the target page rendering data, and obtaining a fourth time for displaying the target page;
[0018] calculating a second time difference between the fourth time and the third time, and determining the second time difference as a second opening time of the target page;
[0019] if the second opening time is greater than a preset second abnormality threshold, it is determined that the target page of the application program has display abnormality;
[0020] generating second program abnormality information according to the application program information, a target page identifier, the device information and the second time difference, and reporting the second program abnormality information to the abnormality detection system.
[0021] Optionally, after the target page rendering data is obtained, the method further includes:
[0022] identifying a component quantity in the target page, and obtaining a corresponding preset second abnormality threshold according to the component quantity;
[0023] Correspondingly, the second program abnormality information is generated according to the application program information, the target page identifier, the device information of the current client and the second time difference, specifically including:
[0024] generating the second program abnormality information according to the application program information, the target page identifier, the device information, the second time difference and the component quantity of the target page.
[0025] Optionally, the method further includes:
[0026] The abnormality detection system receives second program abnormality information from different clients, and based on the second program abnormality information from different clients, counts the number of device information existing display abnormality for each page;
[0027] If the number of device information corresponding to any page is greater than a preset device threshold, it is determined whether the number of components corresponding to the any page is greater than a preset component number;
[0028] If the number of components corresponding to the any page is greater than the preset component number, based on the number of components corresponding to the any page, the pre-rendering component of the any page is determined, and the pre-rendering information of the any page is generated according to the pre-rendering component of the any page and sent to the application program server corresponding to the any page;
[0029] The application program server sends the pre-rendering information of the any page to the client, so that after the client receives the pre-rendering information of the any page, the pre-rendering component of the any page is pre-rendered when displaying the upper page corresponding to the any page.
[0030] Optionally, the determination that the start page of the application program exists display abnormality specifically includes:
[0031] It is determined whether the current network state is normal and whether the current running memory is sufficient;
[0032] If the current network state is normal and the current running memory is sufficient, it is determined that the start page of the application program exists display abnormality.
[0033] Optionally, after the application program is determined to exist display abnormality according to the first time and the second time, the method further includes:
[0034] If the first time and / or the second time is not obtained, the abnormality detection plug-in is reconfigured.
[0035] According to another aspect of the present application, an application program display abnormality detection device is provided, the device includes:
[0036] The configuration module installs the abnormality detection plug-in and configures the abnormality detection plug-in to be referenced when the application program starts;
[0037] The first acquisition module determines the start entrance of the application program by using the abnormality detection plug-in in response to the start instruction of any application program, and acquires the first time when the start entrance starts the application program;
[0038] a second obtaining module, which renders and displays a start page of the application program and obtains a second time when the start page is displayed;
[0039] a judging module, which identifies whether the start page of the application program has a display exception according to the first time and the second time.
[0040] Optionally, the judging module is further configured to calculate a first time difference between the second time and the first time, and determine the first time difference as a first opening time of the start page.
[0041] If the first opening time is greater than a preset first exception threshold, it is determined that the start page of the application program has a display exception.
[0042] The apparatus further includes a first sending module configured to obtain device information of a current client.
[0043] According to the application program information of the application program, the device information of the current client and the first opening time, a first program exception information is generated and reported to an exception detection system corresponding to the exception detection plug-in.
[0044] Optionally, the apparatus further includes a second sending module configured to:
[0045] After the start page of the application program is rendered and displayed, in response to a viewing instruction for a target page in the application program, target page rendering data is obtained, and a third time is recorded.
[0046] According to the target page rendering data, the target page is rendered and displayed, and a fourth time when the target page is displayed is obtained.
[0047] A second time difference between the fourth time and the third time is calculated, and the second time difference is determined as a second opening time of the target page.
[0048] If the second opening time is greater than a preset second exception threshold, it is determined that the target page of the application program has a display exception.
[0049] According to the application program information, a target page identifier, the device information and the second time difference, a second program exception information is generated and reported to the exception detection system.
[0050] Optionally, the apparatus further includes an identifying module configured to:
[0051] The target page rendering data is acquired, the number of components in the target page is identified, and the preset second abnormal threshold corresponding to the number of components is acquired according to the number of components.
[0052] Correspondingly, the second sending module is further configured to:
[0053] The second program abnormal information is generated according to the application program information, the target page identifier, the device information, the second time difference and the number of components of the target page.
[0054] Optionally, the apparatus further comprises a communication module configured to:
[0055] The abnormality detection system receives second program abnormal information from different clients, and based on the second program abnormal information from different clients, the number of device information existing display abnormality for each page is counted.
[0056] If the number of device information corresponding to any page is greater than a preset device threshold, it is determined whether the number of components corresponding to the any page is greater than a preset component number.
[0057] If the number of components corresponding to the any page is greater than the preset component number, the pre-rendering components of the any page are determined based on the number of components corresponding to the any page, and the pre-rendering information of the any page is generated according to the pre-rendering components of the any page and sent to the application program server corresponding to the any page.
[0058] The application program server sends the pre-rendering information of the any page to the client, so that the client pre-renders the pre-rendering components of the any page when displaying the upper page corresponding to the any page.
[0059] Optionally, the judging module is further configured to:
[0060] It is determined whether the current network state is normal and whether the current running memory is sufficient.
[0061] If the current network state is normal and the current running memory is sufficient, it is determined that the start page of the application program exists display abnormality.
[0062] Optionally, the apparatus further comprises a reconfiguration module configured to:
[0063] After the first time and the second time are identified according to the first time and the second time, if the first time and / or the second time are not acquired, the abnormality detection plug-in is reconfigured.
[0064] According to another aspect of the present application, a storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the application program display abnormality detection method.
[0065] According to another aspect of the present application, a computer device is provided, which comprises a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, and the processor implements the application program display abnormality detection method when executing the program.
[0066] By means of the above technical solution, the application provides an application program display abnormality detection method and device, a storage medium, and a computer device. First, an abnormality detection plug-in is installed and configured to be referenced when an application program is started. Second, in response to a starting instruction of any application program, the abnormality detection plug-in is used to determine a starting entrance of the application program, obtain a first time when the starting entrance starts the application program, render and display a starting page of the application program, and obtain a second time when the starting page is displayed. Finally, whether the starting page of the application program has a display abnormality is identified according to the first time and the second time. Compared with the application program display abnormality detection method in the prior art, the embodiment of the present application simplifies the detection steps, helps the developer to quickly obtain the application program display abnormality information and take effective measures in time, and improves the user experience.
[0067] The above description is only a summary of the technical solution of the present application. In order to more clearly understand the technical means of the present application, the following detailed description can be implemented according to the content of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following detailed description of the specific embodiments of the present application is provided. BRIEF DESCRIPTION OF DRAWINGS
[0068] The drawings described herein are used to provide further understanding of the present application, and form a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:
[0069] Figure 1 A flowchart of an application program display abnormality detection method provided by an embodiment of the present application is shown;
[0070] Figure 2 A flowchart of another application program display abnormality detection method provided by an embodiment of the present application is shown;
[0071] Figure 3 A structure diagram of an application program display abnormality detection device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0072] The application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other without conflict.
[0073] In the embodiment, a method for detecting application display abnormality is provided, as shown in the figure, the method comprises the following steps. Figure 1
[0074] Step 101, install an abnormality detection plug-in and configure the abnormality detection plug-in to be referenced when an application is started.
[0075] Step 102, in response to a starting instruction of any application, determine a starting entrance of the application by using the abnormality detection plug-in, and obtain a first time when the starting entrance starts the application.
[0076] Step 103, render and display a starting page of the application, and obtain a second time when the starting page is displayed.
[0077] Step 104, identify whether the starting page of the application has display abnormality according to the first time and the second time.
[0078] The embodiment of the application can be applied to various types of clients, and is used for detecting whether an APP application in the client has a page display abnormality problem. The client includes a smart phone, a tablet computer and other mobile terminals. The embodiment of the application takes an Android phone as an example for explanation and description. First, an abnormality detection plug-in for detecting a page display abnormality problem is installed in the Android phone. The abnormality detection plug-in is adapted to the Android phone system, and is configured to be referenced when any application in the Android phone is started. Based on a selection operation of a user on an APP, the client starts the APP and references the abnormality detection plug-in. The abnormality detection plug-in finds a starting entrance of the APP and obtains a time stamp when the starting entrance starts the APP, which is recorded as a first time. After the APP is started, the page is rendered and displayed. When the page display is completed, a second time stamp when the starting page is displayed is obtained, which is recorded as a second time. The abnormality detection plug-in identifies whether the starting page of the APP has display abnormality according to the first time and the second time, and can quickly judge whether the APP has a display abnormality problem when it is opened.
[0079] By applying the technical solution of the embodiment, the abnormality detection plug-in is referenced when the APP is started in the embodiment of the application. The page starting time and the page display time when the APP is opened are obtained by the abnormality detection plug-in. Whether the APP has a display abnormality problem when it is opened can be quickly judged. This facilitates the developers to analyze the display abnormality phenomenon and take corresponding measures in time, and thus the experience of the user is improved.
[0080] As an optional implementation of the embodiment of the application, step 104 comprises: calculating a first time difference between the second time and the first time, determining the first time difference as a first opening time of the start page; if the first opening time is greater than a preset first abnormal threshold, determining that the start page of the application program has display abnormality; step 104 further comprises: obtaining device information of a current client; generating first program abnormal information according to application program information of the application program, the device information of the current client and the first opening time, and reporting the first program abnormal information to an abnormal detection system corresponding to the abnormal detection plug-in.
[0081] In the above embodiment, the abnormal detection plug-in calculates a first opening time as a first time difference between the first time and the second time obtained, compares the first opening time with a preset first abnormal threshold, and determines that the start page of the APP has display abnormality when the first opening time is greater than the first abnormal threshold. Then, the abnormal detection plug-in generates first program abnormal information according to the device information of the current client with display abnormality, the application program information and the first opening time, and reports the first program abnormal information to the corresponding abnormal detection system, which facilitates the developer to obtain abnormal display information and analyze abnormal phenomena. The first program abnormal information comprises: a model, for example, Honor 12, a system version number, for example, 9.0 version, a first opening time, for example, 50 milliseconds, and more information.
[0082] Optionally, after the application program is determined to have display abnormality according to the first time and the second time, if the first time and / or the second time is not obtained, the abnormal detection plug-in is reconfigured.
[0083] In the embodiment of the application, when the first time and the second time are not obtained, and the first time or the second time is not obtained, the abnormal detection plug-in is reconfigured.
[0084] It should be noted that the determination that the start page of the application program has display abnormality specifically comprises: judging whether the current network state is normal and whether the current running memory is sufficient; if the current network state is normal and the current running memory is sufficient, it is determined that the start page of the application program has display abnormality. In the page display process, the network state and the running memory are also factors affecting the normal display of the page. When the network state is normal and the running memory is sufficient, it can be determined that the start page has display abnormality.
[0085] By applying the technical solution of the embodiment, the first time difference of starting the starting page is calculated and compared with the preset first abnormal threshold value to determine the APP page display abnormality, generate the first program abnormal information and report to the corresponding abnormal detection system, which facilitates the analysis of the abnormal phenomenon by the developer and the corresponding improvement measures are taken, thereby improving the user experience.
[0086] Further, as a refinement and expansion of the above embodiment, in order to completely describe the specific implementation process of the embodiment, another application program display abnormality detection method is provided, as shown in Figure 2 The method comprises:
[0087] Step 201, install the abnormality detection plug-in and configure the abnormality detection plug-in to be referenced when the application program starts;
[0088] Step 202, in response to the starting instruction of any application program, the abnormality detection plug-in is used to determine the starting entrance of the application program, and the first time of starting the application program by the starting entrance is obtained;
[0089] Step 203, render and display the starting page of the application program;
[0090] Step 204, in response to the viewing instruction of the target page in the application program, the target page rendering data is obtained, and the third time is recorded;
[0091] Step 205, render and display the target page according to the target page rendering data, and obtain the fourth time of displaying the target page;
[0092] Step 206, calculate the second time difference between the fourth time and the third time, and determine the second opening time of the target page as the second time difference;
[0093] Step 207, if the second opening time is greater than the preset second abnormal threshold value, it is determined that the target page of the application program has display abnormality;
[0094] Step 208, generate the second program abnormal information according to the application program information, target page identifier, device information and second time difference, and report the second program abnormal information to the abnormality detection system.
[0095] In the embodiment of the application, the client first installs the exception detection plug-in and is configured to reference the exception detection plug-in when the APP is started, reference the exception detection plug-in when the user opens any APP, obtain the first time of APP starting at the starting entrance of the APP, start the APP, and then the client starts rendering the starting page. In the process of rendering the APP starting page, the user wants to view any page in the APP, that is, a target page. Based on the selection operation of the user, the exception detection plug-in is referenced, the rendering data of the target page is obtained, and the third time is recorded. The target page is rendered and displayed based on the target page rendering data, and the fourth time is obtained when the display of the target page ends. The second time difference between the fourth time and the third time is determined as the second opening time. The second opening time is compared with the preset second abnormal threshold value. If the preset second abnormal threshold value is greater than the second opening time, it is determined that the target page in the APP has a display exception. The exception detection plug-in generates second program exception information according to the obtained APP information, target page identifier, mobile terminal information, and second time difference, and reports to the exception detection system. Each target page has a target page identifier, which is used to distinguish which target page has an exception, and facilitates the developer to analyze the problem.
[0096] Optionally, after obtaining the target page rendering data in step 204, the method further includes: identifying the number of components in the target page, and obtaining the corresponding preset second abnormal threshold value according to the number of components.
[0097] Correspondingly, step 208 includes: generating the second program exception information according to the application program information, the target page identifier, the device information, the second time difference, and the number of components of the target page.
[0098] In the above embodiment, after obtaining the target page rendering, the number of components in the target page needs to be identified, and the corresponding preset second abnormal threshold value is determined according to the number of components. For example, the target page contains 30 components, and the obtained preset second abnormal threshold value is 30 ms. The target page contains 50 components, and the obtained preset second abnormal threshold value is 50 ms. Thus, the preset second abnormal threshold value is dynamically adjusted according to the number of page components, so as to exclude the case that the page rendering time is too long due to too many page components, and the page display exception problem is identified.
[0099] It should be noted that the abnormality detection system receives second program abnormality information from different clients, and based on the second program abnormality information from different clients, the number of device information existing display abnormality for each page is counted; if the number of device information corresponding to any page is greater than a preset device threshold, it is judged whether the number of components corresponding to the any page is greater than a preset component number; if the number of components corresponding to the any page is greater than the preset component number, the pre-rendering component of the any page is determined based on the number of components corresponding to the any page, and the pre-rendering information of the any page is generated according to the pre-rendering component of the any page and sent to the application program server corresponding to the any page; the application program server sends the pre-rendering information of the any page to the client, so that the client receives the pre-rendering information of the any page and pre-renders the pre-rendering component of the any page when displaying the superior page corresponding to the any page.
[0100] The abnormality detection system receives second abnormality detection information of a plurality of clients, and counts the number of device information existing display abnormality for each page, that is, the number of same models of mobile terminals appearing abnormality in the same page is counted together, and whether there is a problem that many models of devices exist display abnormality when displaying a certain page is judged based on a preset device threshold, that is, whether the number of device information corresponding to any page is greater than the preset device threshold; for example, the number of device information is 10 and the preset device threshold is 8, when the number of device information 10 is greater than the preset device threshold 8, it is judged whether the number of components corresponding to the page is greater than the preset component number, for example, the number of components of the page is 30 and the preset component number is 20, the preset component number is less than the number of components of the page, which is 10 less, at this time, the page display time-consuming is longer, which may be caused by too many page components and too long rendering time. In order to speed up the page display speed and further investigate the application program abnormality problem, a part of the components of the page can be pre-rendered to improve the page display speed and further investigate the application program abnormality problem, for example, the number of pre-rendering components is determined to be 15, the pre-rendering information of the page is generated and sent to the corresponding application program server, the number of pre-rendering components is greater than or equal to the difference between the number of components of the page and the preset component number, after the server receives the pre-rendering information of the page, the pre-rendering information is sent to the client, and when the superior page of the page is displayed, the 15 pre-rendering components of the page are pre-rendered, so that the page display speed is accelerated and the user experience is improved.
[0101] In addition, if the page is displayed in a pre-rendering manner, the page still has a problem of long display time, and it can be considered that the page display exception is not caused by too many page components, and the problem is likely caused by a defect in the application code. After the exception detection plug-in reports to the exception detection system, the exception detection system can notify the technical personnel of the display exception problem of the page as a key problem.
[0102] Further, as Figure 1 The embodiments of the present application provide a device for detecting display exception of an application, as shown in the method, the device comprises: Figure 3
[0103] A configuration module is configured to install an exception detection plug-in and configure the exception detection plug-in to be referenced when the application is started;
[0104] A first acquisition module is configured to, in response to a starting instruction of any application, determine a starting entrance of the application by using the exception detection plug-in, and acquire a first time when the starting entrance starts the application;
[0105] A second acquisition module is configured to render and display a starting page of the application, and acquire a second time when the starting page is displayed;
[0106] A judgment module is configured to identify whether the starting page of the application has a display exception according to the first time and the second time.
[0107] Optionally, the judgment module is further configured to calculate a first time difference between the second time and the first time, and determine the first time difference as a first opening time of the starting page;
[0108] If the first opening time is greater than a preset first exception threshold, it is determined that the starting page of the application has a display exception;
[0109] The device further comprises a first sending module configured to acquire device information of a current client;
[0110] According to the application information of the application, the device information of the current client, and the first opening time, first program exception information is generated, and the first program exception information is reported to an exception detection system corresponding to the exception detection plug-in.
[0111] Optionally, the device further comprises a second sending module configured to:
[0112] After the starting page of the application is rendered and displayed, in response to a viewing instruction of a target page in the application, target page rendering data is acquired, and a third time is recorded;
[0113] render and display the target page according to the target page rendering data, and obtain a fourth time of displaying the target page;
[0114] calculate a second time difference between the fourth time and the third time, and determine the second time difference as a second opening time of the target page;
[0115] if the second opening time is greater than a preset second abnormal threshold, determine that the target page of the application program has display abnormality;
[0116] generate second program abnormal information according to the application program information, the target page identifier, the device information and the second time difference, and report the second program abnormal information to the abnormality detection system.
[0117] Optionally, the apparatus further comprises an identification module configured to:
[0118] after obtaining the target page rendering data, identify the number of components in the target page, and obtain the preset second abnormal threshold according to the number of components;
[0119] correspondingly, the second sending module is further configured to:
[0120] generate the second program abnormal information according to the application program information, the target page identifier, the device information, the second time difference and the number of components of the target page.
[0121] Optionally, the apparatus further comprises a communication module configured to:
[0122] the abnormality detection system receives second program abnormal information from different clients, and based on the second program abnormal information from different clients, counts the number of device information of each page having display abnormality;
[0123] if the number of device information corresponding to any page is greater than a preset device threshold, judges whether the number of components corresponding to the any page is greater than a preset component number;
[0124] if the number of components corresponding to the any page is greater than the preset component number, determines the pre-rendering component of the any page based on the number of components corresponding to the any page, and generates pre-rendering information of the any page according to the pre-rendering component of the any page, and sends the pre-rendering information of the any page to an application program server corresponding to the any page;
[0125] The application server sends the pre-rendering information of the any page to the client, so that the client pre-renders the pre-rendering component of the any page when displaying the upper page corresponding to the any page after receiving the pre-rendering information of the any page.
[0126] Optionally, the judging module is further configured to:
[0127] determine whether the current network state is normal and whether the current running memory is sufficient.
[0128] If the current network state is normal and the current running memory is sufficient, it is determined that the start page of the application program has a display abnormality.
[0129] Optionally, the apparatus further comprises a reconfiguring module configured to:
[0130] After the application program is determined to have a display abnormality according to the first time and the second time, if the first time and / or the second time is not obtained, the abnormality detection plug-in is reconfigured.
[0131] It should be noted that other corresponding descriptions of the functions of the application program display abnormality detection apparatus provided in the embodiments of the present application can be referred to the corresponding descriptions in the Figures 1 to 2 method, which will not be described here.
[0132] Based on the method as shown in Figures 1 to 2 , correspondingly, the embodiments of the present application further provide a storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the application program display abnormality detection method as shown in Figures 1 to 2 .
[0133] Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.) and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in various implementation scenarios of the present application.
[0134] Based on the method as shown in Figures 1 to 2 , and Figure 3 the virtual apparatus embodiment, in order to achieve the above purpose, the embodiments of the present application further provide a computer device, which can be a personal computer, a server, a network device, etc., and the computer device comprises a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the application program display abnormality detection method as shown in Figures 1 to 2 .
[0135] Optionally, the computer device can further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface can include a display, an input unit such as a keyboard, and the like. Optionally, the user interface can further include a USB interface, a card reader interface, and the like. The network interface can optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), and the like.
[0136] Those skilled in the art can understand that the computer device structure provided by the embodiment does not constitute a limitation on the computer device, and can include more or fewer components, or combine certain components, or different component arrangements.
[0137] The storage medium can further include an operating system, a network communication module. The operating system is a program for managing and saving computer device hardware and software resources, supporting information processing programs and the running of other software and / or programs. The network communication module is used to realize communication between the components in the storage medium and communication with other hardware and software in the entity device.
[0138] Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be realized by means of software and necessary general hardware platforms, or by hardware through installation of an abnormality detection plug-in to acquire the start time and rendering end time of the start page of the APP to determine whether the start page has display abnormalities. Compared with the application program display abnormality detection method in the prior art, the embodiment of the present application improves the accuracy of determining whether there is a display abnormality, simplifies the detection steps, helps developers to obtain application program display abnormality information and take effective measures in time, and improves the user experience.
[0139] Those skilled in the art can understand that the drawings are only a schematic diagram of a preferred implementation scenario, and the modules or flows in the drawings are not necessarily necessary for implementing the present application. Those skilled in the art can understand that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the description of the implementation scenario, or can be changed and located in one or more devices different from the implementation scenario. The modules of the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0140] The above application serial numbers are only for description, and do not represent the advantages and disadvantages of the implementation scenario. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any changes that can be thought of by those skilled in the art should fall within the protection scope of the present application.
Claims
1. A method for detecting application display anomalies, characterized in that, The method includes: Install the anomaly detection plugin and configure it to be referenced when the application starts; In response to a launch command for any application, the anomaly detection plugin is used to determine the launch entry point of the application and obtain the first time the application is launched by the launch entry point. Render and display the application's launch page, and obtain a second time when the launch page is displayed; based on the first time and the second time, identify whether the application's launch page has any display anomalies; In response to a viewing instruction for a target page in the application, the system obtains the target page rendering data, identifies the number of components in the target page, obtains a corresponding preset second anomaly threshold based on the number of components, and records a third time. Based on the target page rendering data, render and display the target page, and obtain the fourth time when the target page is displayed; calculate the second time difference between the fourth time and the third time, and determine the second time difference as the second opening time of the target page; If the second opening time is greater than the preset second abnormal threshold, it is determined that the target page of the application has a display abnormality; based on the application information, target page identifier, device information, the second time difference and the number of components of the target page, a second program abnormality information is generated and the second program abnormality information is reported to the abnormality detection system; The anomaly detection system receives second program anomaly information from different clients, and based on the second program anomaly information from different clients, counts the number of device information with display anomalies for each page; if the number of device information corresponding to any page is greater than a preset device threshold, it determines whether the number of components corresponding to any page is greater than a preset number of components. If the number of components corresponding to any page is greater than the preset number of components, then based on the number of components corresponding to any page, the pre-rendered components of any page are determined, and based on the pre-rendered components of any page, pre-rendered information of any page is generated and sent to the application server corresponding to any page; the application server sends the pre-rendered information of any page to the client, so that after the client receives the pre-rendered information of any page, it pre-renders the pre-rendered components of any page when displaying the parent page corresponding to any page.
2. The method according to claim 1, characterized in that, The step of identifying whether the application has display anomalies based on the first time and the second time specifically includes: Calculate the first time difference between the second time and the first time, and determine the first time difference as the first opening time of the launch page; If the first opening time is greater than a preset first abnormal threshold, then it is determined that the application's startup page has a display abnormality; Accordingly, after identifying whether the application has a display anomaly based on the first time and the second time, the method further includes: Get the current client's device information; Based on the application information of the application, the device information of the current client, and the first opening time, a first program exception information is generated, and the first program exception information is reported to the exception detection system corresponding to the exception detection plugin.
3. The method according to claim 2, characterized in that, The determination that the application's launch page has a display anomaly specifically includes: Determine if the current network status is normal and if the current running memory is sufficient; If the current network status is normal and the current running memory is sufficient, then it is determined that the application's startup page has a display abnormality.
4. The method according to any one of claims 1 to 3, characterized in that, After identifying whether the application has a display anomaly based on the first time and the second time, the method further includes: If the first and / or second times are not obtained, the anomaly detection plugin is reconfigured.
5. A detection device for application displaying anomalies, characterized in that, The device includes: Configure the module, install the anomaly detection plugin, and configure the anomaly detection plugin to be referenced when the application starts; The first acquisition module, in response to a launch command for any application, uses the anomaly detection plugin to determine the launch entry point of the application and acquire the first time the application is launched by the launch entry point; The second acquisition module renders and displays the application's startup page, and acquires the second time the startup page is displayed; The judgment module identifies whether there is a display anomaly on the application's startup page based on the first time and the second time. The second sending module is configured to: after rendering and displaying the application's startup page, in response to a viewing instruction for a target page in the application, acquire target page rendering data and record a third time; based on the target page rendering data, render and display the target page and acquire a fourth time for displaying the target page; calculate a second time difference between the fourth time and the third time, and determine the second time difference as the second opening time of the target page; if the second opening time is greater than a preset second abnormal threshold, determine that the target page of the application has a display abnormality; generate second program abnormality information based on application information, target page identifier, device information, and the second time difference, and report the second program abnormality information to the abnormality detection system; The identification module is used to: after obtaining the target page rendering data, identify the number of components in the target page, and obtain the corresponding preset second abnormal threshold based on the number of components; The second sending module is further configured to: generate the second program exception information based on the application information, the target page identifier, the device information, the second time difference, and the number of components of the target page; The communication module is configured to: receive second program exception information from different clients, and based on the second program exception information from different clients, count the number of device information items with display exceptions for each page; if the number of device information items corresponding to any page is greater than a preset device threshold, determine whether the number of components corresponding to any page is greater than a preset number of components; if the number of components corresponding to any page is greater than the preset number of components, determine the pre-rendering components of any page based on the number of components corresponding to any page, and generate pre-rendering information for any page based on the pre-rendering components of any page, and send it to the application server corresponding to any page; the application server sends the pre-rendering information of any page to the client, so that after the client receives the pre-rendering information of any page, it pre-renders the pre-rendering components of any page when displaying the parent page corresponding to any page.
6. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for detecting abnormalities in the application display as described in any one of claims 1 to 4.
7. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for detecting abnormal application display as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for starting application program, electronic device and medium
CN110007981A
Page loading time length detection method and device, equipment and storage medium
CN110287441A
Application program starting speed monitoring method and device
CN111597111A
Front-end monitoring method and device, equipment and medium
CN112835764A