[go: up one dir, main page]

CN111597111A - Application program starting speed monitoring method and device - Google Patents

Application program starting speed monitoring method and device Download PDF

Info

Publication number
CN111597111A
CN111597111A CN202010343254.9A CN202010343254A CN111597111A CN 111597111 A CN111597111 A CN 111597111A CN 202010343254 A CN202010343254 A CN 202010343254A CN 111597111 A CN111597111 A CN 111597111A
Authority
CN
China
Prior art keywords
loading
application program
starting
display page
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010343254.9A
Other languages
Chinese (zh)
Inventor
吴朝彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010343254.9A priority Critical patent/CN111597111A/en
Publication of CN111597111A publication Critical patent/CN111597111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method and a device for monitoring the starting speed of an application program, wherein the method comprises the following steps: receiving a monitoring instruction for starting a target application program; responding to a monitoring instruction for starting the target application program, and starting the target application program according to preset times; acquiring the time consumed by loading each display page in at least one display page in each starting process, and acquiring a loading start frame and a loading end frame of each display page; and monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for preset times. In this way, the process of monitoring the launch speed of the target application does not require human intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high.

Description

Application program starting speed monitoring method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for monitoring a start speed of an application.
Background
The user clicks icons of various Application programs (apps) installed on the terminal, and can start the corresponding Application programs. If the starting process of the application program is long in time consumption and the speed of displaying the main page is slow, the user can be felt that the application program is relatively unsmooth, and therefore poor using experience can be brought to the user. In order to improve the user experience, the starting speed of the application program needs to be measured, and then the application program is optimized in a targeted manner according to the measurement result, so that the starting process is shortened.
In the prior art, a debugging Bridge (Android Debug Bridge, ADB) tool of an Android system is used for analyzing and extracting starting information of an application program. When the ADB tool is used to analyze the starting process of the application program, an operator must know the meaning of the relevant information acquired by the ADB tool to perform the analysis. And moreover, an operator needs to search related information from a large amount of data acquired by the ADB tool, the process is complicated, and the efficiency of monitoring the starting speed of the application program is low.
Disclosure of Invention
The application provides a method and a device for monitoring the starting speed of an application program, which aim to solve the problem that the efficiency of monitoring the starting speed of the application program is low in the prior art.
In a first aspect, the present invention provides a method for monitoring an application start speed, including:
receiving a monitoring instruction for starting a target application program;
responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page;
for the at least one display page in each starting process, acquiring the time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, wherein the time consumed for loading is the time consumed for rendering the display page;
and monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
Further, the obtaining of the time consumed for loading each of the at least one display page includes:
acquiring a loading starting time point and a loading ending time point of each display page in the at least one display page;
and determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in the at least one display page.
Further, the acquiring a loading start frame and a loading end frame of each display page includes:
and intercepting a loading start frame and a loading end frame of each display page from a target video, wherein the target video is a video which is recorded when each starting process of the target application program starts and aims at the starting process.
Further, the intercepting a loading start frame and a loading end frame of each presentation page from the target video includes:
according to the loading starting time point and the loading ending time point of each display page, a video frame of which the difference value between the timestamp and the loading starting time point is smaller than a preset threshold value is intercepted from the target video to serve as a loading starting frame of the display page, and a video frame of which the difference value between the timestamp and the loading ending time point is smaller than the preset threshold value is intercepted from the target video to serve as a loading ending frame of the display page.
Further, the method further comprises:
and acquiring a starting log of the target application program in each starting process of the target application program.
Further, before the step of receiving the monitoring instruction for the target application program start, the method further includes:
displaying a list of applications to be measured;
receiving an application program selection instruction;
in response to the application selection instruction, selecting the target application in the list of applications to be measured.
In a second aspect, the present invention further provides an application program starting speed monitoring apparatus, including:
the first receiving module is used for receiving a monitoring instruction for starting a target application program;
the starting module is used for responding to the monitoring instruction for starting the target application program and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page;
an obtaining module, configured to obtain, for the at least one display page in each starting process, a time consumed for loading of each display page in the at least one display page, and obtain a loading start frame and a loading end frame of each display page, where the time consumed for loading is time consumed for completing rendering of the display page;
and the monitoring module is used for monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
Further, the obtaining module includes:
the obtaining submodule is used for obtaining a loading starting time point and a loading ending time point of each display page in the at least one display page;
and the determining submodule is used for determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in the at least one display page.
Further, the obtaining module is specifically configured to intercept a loading start frame and a loading end frame of each display page from a target video, where the target video is a video, which is recorded at the beginning of each starting process of the target application program and is specific to the starting process.
Further, the obtaining module is specifically configured to, according to a loading start time point and a loading end time point of each display page, intercept, from the target video, a video frame whose difference between a timestamp and the loading start time point is smaller than a preset threshold as a loading start frame of the display page, and intercept, from the target video, a video frame whose difference between the timestamp and the loading end time point is smaller than the preset threshold as a loading end frame of the display page.
Further, the application program starting speed monitoring device further includes:
and the acquisition module is used for acquiring the starting log of the target application program in each starting process of the target application program.
Further, the application program starting speed monitoring device further includes:
the display module is used for displaying an application program list to be measured;
the second receiving module is used for receiving an application program selection instruction;
and the selection module is used for responding to the application program selection instruction and selecting the target application program in the list of the application programs to be measured.
In a third aspect, the present invention further provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the application program starting speed monitoring method of the first aspect.
In a fourth aspect, the present invention further provides a readable storage medium, in which a computer program is stored, and when at least one processor of the application start speed monitoring apparatus executes the computer program, the application start speed monitoring apparatus executes the application start speed monitoring method according to the first aspect.
As can be seen from the foregoing technical solutions, the application start speed monitoring method and apparatus provided in the embodiments of the present invention receive a monitoring instruction for starting a target application; responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page; for the at least one display page in each starting process, acquiring the time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, wherein the time consumed for loading is the time consumed for rendering the display page; and monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times. Therefore, the target application program can be started according to the preset times only by receiving a monitoring instruction for starting the target application program, and further, the time consumed for loading each display page in at least one display page can be obtained, and the loading start frame and the loading end frame of each display page can be obtained for at least one display page in each starting process. Next, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each presentation page acquired in the starting process of the target application program for the preset number of times. The monitoring process does not need manual intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an application start speed monitoring method provided in the present application;
FIG. 2 is a schematic diagram of receiving a monitoring instruction for target application program launch provided herein;
FIG. 3 is a flow chart of another method for monitoring application startup speed provided herein;
FIG. 4 is a histogram of the time consumed by the target application program to start;
FIG. 5 is a schematic diagram of a start log of a start process of a target application provided herein;
FIG. 6 is a schematic view of a configuration panel provided herein;
FIG. 7 is a block diagram of an application startup speed monitoring apparatus provided in the present application;
FIG. 8 is a block diagram of another application startup speed monitoring device provided herein;
FIG. 9 is a block diagram of another application startup speed monitoring device provided herein;
FIG. 10 is a block diagram of another application startup speed monitoring device provided herein;
fig. 11 is a schematic diagram of a hardware structure of an electronic device provided in the present application.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited in the claims.
Referring to fig. 1, fig. 1 is a flowchart of an application start speed monitoring method according to the present invention. As shown in fig. 1, the method comprises the following steps:
step 101, receiving a monitoring instruction for starting a target application program.
In step 101, a monitoring instruction for the start of a target application may be received. For example, as shown in fig. 2, a schematic diagram of receiving a monitoring instruction for the start of a target application program is shown. In fig. 2, the user may click the "debuggable" button of the target application program, and then receive a monitoring instruction for the target application program. The user can analyze the starting process of the target application program only by clicking a 'debuggable' button of the target application program in the visual interface, and the method is simple to operate, convenient and fast.
Step 102, responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page.
In step 102, in response to the monitoring instruction for the target application program start, the target application program may be started a preset number of times. For example, the preset number of times may be 10 times. Wherein each starting process of the target application program comprises at least one display page. The at least one presentation page may be a start page and a main page, and so on.
Step 103, for the at least one display page in each starting process, acquiring a time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, wherein the time consumed for loading is a time consumed for rendering the display page.
In step 103, for at least one presentation page in each starting process, the time consumed for loading each presentation page in the at least one presentation page may be obtained, and a loading start frame and a loading end frame of each presentation page may be obtained. And the time consumed for loading is the time consumed for rendering the display page. For example, the time it takes to load may be the time it takes to launch a page to complete rendering; alternatively, the load time may be the time it takes for the master page to complete rendering.
And step 104, monitoring the starting speed of the target application program according to the loading starting frame, the loading ending frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
In step 104, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset number of times. For example, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the time consumed for loading the start page, the loading end frame, and the main page, which are acquired during the starting process of the target application program for the preset number of times, and the loading start frame, the loading end frame, and the time consumed for loading the main page, which are acquired during the starting process of the target application program for the preset number of times.
It should be noted that, in the prior art, ADB tool is used to analyze and extract the start-up information of the application. When the ADB tool is used for analyzing the starting process of the application, an operator must know the meaning of the related information acquired by the ADB tool so as to analyze the information. And moreover, an operator needs to search related information from a large amount of data acquired by the ADB tool, the process is complicated, and the efficiency of monitoring the starting speed of the application program is low.
In the application, the target application program can be started according to the preset times only by receiving the monitoring instruction for starting the target application program, and then the time consumed for loading each display page in at least one display page can be obtained, and the loading start frame and the loading end frame of each display page can be obtained for at least one display page in each starting process. Next, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each presentation page acquired in the starting process of the target application program for the preset number of times. The monitoring process does not need manual intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high.
According to the technical scheme, the application program starting speed monitoring method provided by the embodiment of the invention receives a monitoring instruction for starting a target application program; responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page; for the at least one display page in each starting process, acquiring the time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, wherein the time consumed for loading is the time consumed for rendering the display page; and monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times. Therefore, the target application program can be started according to the preset times only by receiving a monitoring instruction for starting the target application program, and further, the time consumed for loading each display page in at least one display page can be obtained, and the loading start frame and the loading end frame of each display page can be obtained for at least one display page in each starting process. Next, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each presentation page acquired in the starting process of the target application program for the preset number of times. The monitoring process does not need manual intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high.
Referring to fig. 3, fig. 3 is a flowchart of another application startup speed monitoring method provided by the present invention. As shown in fig. 3, the method comprises the following steps:
step 301, displaying a list of applications to be measured.
In step 301, the application startup speed monitoring device may be connected to the terminal, and then a list of applications to be measured may be displayed on the application startup speed monitoring device. The application programs to be measured are all application programs installed on the terminal.
Step 302, receiving an application selection instruction.
In step 302, the application launch speed monitoring apparatus may receive an application selection instruction.
And step 303, responding to the application program selection instruction, and selecting the target application program in the list of the application programs to be measured.
In step 303, in response to the received application selection instruction, a target application may be selected in the list of applications to be measured. The user can select the application program to be measured from the application program list to be measured according to the requirement of the user, and the method is simple in operation steps, convenient and fast.
And step 304, receiving a monitoring instruction for starting the target application program.
In step 304, a monitoring instruction for the target application launch may be received. Still taking fig. 2 as an example, in fig. 2, the user may click the "debuggable" button of the target application program, and at this time, the monitoring instruction for starting the target application program is received. The user can analyze the starting process of the target application program only by clicking a 'debuggable' button of the target application program in the visual interface, and the method is simple to operate, convenient and fast.
Step 305, responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page.
In step 305, in response to the monitoring instruction for the target application start, the target application may be started a preset number of times. For example, the preset number of times may be 10 times. Wherein each starting process of the target application program comprises at least one display page. The at least one presentation page may be a start page and a main page, and so on.
Step 306, for the at least one display page in each starting process, acquiring a time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, where the time consumed for loading is a time consumed for completing rendering of the display page.
In step 306, for at least one presentation page in each starting process, the time consumed for loading each presentation page in the at least one presentation page may be obtained, and the loading start frame and the loading end frame of each presentation page may be obtained. And the time consumed for loading is the time consumed for rendering the display page. For example, the time it takes to load may be the time it takes to launch a page to complete rendering; alternatively, the load time may be the time it takes for the master page to complete rendering. It should be noted that, in each starting process of the target application program, time-consuming information corresponding to the starting process of the target application program may also be collected.
Optionally, the obtaining of the time consumed for loading each display page of the at least one display page includes:
acquiring a loading starting time point and a loading ending time point of each display page in the at least one display page;
and determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in the at least one display page.
A load start time point and a load end time point of each of the at least one presentation page may be obtained. And further determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in at least one display page.
Optionally, the obtaining a loading start frame and a loading end frame of each display page includes:
and intercepting a loading start frame and a loading end frame of each display page from a target video, wherein the target video is a video which is recorded when each starting process of the target application program starts and aims at the starting process.
The loading start frame and the loading end frame of each presentation page can be intercepted from the target video. The target video is a video which is recorded when the starting process of the target application program is started and aims at the starting process.
Optionally, the intercepting a loading start frame and a loading end frame of each presentation page from the target video includes:
according to the loading starting time point and the loading ending time point of each display page, a video frame of which the difference value between the timestamp and the loading starting time point is smaller than a preset threshold value is intercepted from the target video to serve as a loading starting frame of the display page, and a video frame of which the difference value between the timestamp and the loading ending time point is smaller than the preset threshold value is intercepted from the target video to serve as a loading ending frame of the display page.
It should be noted that, according to the loading start time point and the loading end time point of each presentation page, a video frame whose difference between the timestamp and the loading start time point is smaller than a preset threshold is captured from the target video as the loading start frame of the presentation page, and a video frame whose difference between the timestamp and the loading end time point is smaller than the preset threshold is captured from the target video as the loading end frame of the presentation page.
The starting time consumption histogram of the target application program can be generated based on the time consumed for loading the starting page, the time consumed for loading the main page and the time consumption information corresponding to the starting process of the target application program, which are acquired in each starting process of the target application program. As shown in fig. 4, a histogram of the time spent starting the target application is shown. In fig. 4, data of 10 measurements are displayed in total, and each measured data includes time consumed for loading the start page of the target application program, time consumed for loading the main page, and time consumed information corresponding to the start process of the target application program. According to the loading time consumption of 10 startup pages obtained by 10 times of measurement, the average value of the loading time consumption of 10 startup pages can be calculated to be 1052.4 milliseconds; according to the loading time consumption of 10 main pages obtained by 10 times of measurement, the average value of the loading time consumption of 10 main pages can be calculated to be 1199.3 milliseconds. It should be noted that, the system state and the network state of the target application program are different at each start, so the target application program can be started according to the preset times, and the influence of the deviation of a single measurement on the whole can be reduced. Namely, the interference of accidental conditions on the whole data can be reduced by increasing the measurement times.
Optionally, the method further includes:
and acquiring a starting log of the target application program in each starting process of the target application program.
In each starting process of the target application program, a starting log of the target application program can be collected. By collecting the starting log of the starting process of the target application program, the non-page service existing in the starting process of the target application program, the starting/ending log and the like can be checked. Fig. 5 is a schematic diagram of a start log of a start process of a target application.
Step 307, monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
In step 307, the start speed of the target application program may be monitored according to the start loading frame, the end loading frame, and the time consumed for loading of each presentation page acquired during the preset number of times of the start process of the target application program. For example, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the time consumed for loading the start page, the loading end frame, and the main page, which are acquired during the starting process of the target application program for the preset number of times, and the loading start frame, the loading end frame, and the time consumed for loading the main page, which are acquired during the starting process of the target application program for the preset number of times.
It should be noted that, the user may also adjust the start configuration autonomously, that is, the output report may be configured selectively according to the actual situation. Whether to output video frames collected in the starting process of the target application program, whether to output original logs, the starting times and the like can be adjusted through the configuration panel.
For example, as shown in FIG. 6, a schematic view of a configuration panel is provided. In fig. 6, three options of "capture page screenshot", "capture flow log", and "adjust the number of start-up capture" are displayed. The user can select any option of the three options according to the needs of the user. The collection of the page screenshot can be used for collecting a key page in the starting process of the target application program; the collection of the flow log can facilitate the user to view the non-page service existing in the starting process of the target application program, the starting/finishing log and the like; adjusting the number of start-up acquisitions allows the operator to increase or decrease the number of samples as desired. The more times the acquisition, the more stable the average value is, of course, the more time-consuming.
As can be seen from the foregoing technical solutions, according to the application program starting speed monitoring method provided in the embodiments of the present invention, the target application program can be started according to the preset times only by receiving the monitoring instruction for starting the target application program, and further, for at least one display page in each starting process, the time consumed for loading each display page in the at least one display page can be obtained, and the loading start frame and the loading end frame of each display page can be obtained. Next, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each presentation page acquired in the starting process of the target application program for the preset number of times. The monitoring process does not need manual intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high. Furthermore, the user can select the application program to be measured from the application program list to be measured according to the requirement of the user, and the method is simple in operation steps, convenient and fast. Moreover, the system state and the network state of the target application program are different when the target application program is started each time, so that the target application program can be started according to the preset times, and the influence of the deviation of single measurement on the whole can be reduced. Namely, the interference of accidental conditions on the whole data can be reduced by increasing the measurement times.
Referring to fig. 7, fig. 7 is a structural diagram of an application start speed monitoring apparatus according to the present invention. As shown in fig. 7, the application start-up speed monitoring apparatus 700 includes a first receiving module 701, a starting module 702, an obtaining module 703 and a monitoring module 704, wherein:
a first receiving module 701, configured to receive a monitoring instruction for starting a target application;
a starting module 702, configured to respond to the monitoring instruction for starting the target application program, and start the target application program according to preset times, where each starting process of the target application program includes at least one display page;
an obtaining module 703, configured to obtain, for the at least one display page in each starting process, time consumed for loading of each display page in the at least one display page, and obtain a loading start frame and a loading end frame of each display page, where the time consumed for loading is time consumed for completing rendering of the display page;
a monitoring module 704, configured to monitor a starting speed of the target application program according to the loading start frame, the loading end frame, and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset number of times.
Optionally, as shown in fig. 8, the obtaining module 703 includes:
an obtaining sub-module 7031, configured to obtain a loading start time point and a loading end time point of each of the at least one display page;
the determining sub-module 7032 is configured to determine, according to the loading start time point and the loading end time point of each display page in the at least one display page, a time consumed for loading the display page.
Optionally, the obtaining module 703 is specifically configured to intercept a loading start frame and a loading end frame of each display page from a target video, where the target video is a video, which is recorded when each starting process of the target application program starts, and is specific to the starting process.
Optionally, the obtaining module 703 is specifically configured to, according to a loading start time point and a loading end time point of each display page, intercept, from the target video, a video frame whose difference between a timestamp and the loading start time point is smaller than a preset threshold as a loading start frame of the display page, and intercept, from the target video, a video frame whose difference between the timestamp and the loading end time point is smaller than the preset threshold as a loading end frame of the display page.
Optionally, as shown in fig. 9, the application start speed monitoring apparatus further includes:
the collecting module 705 is configured to collect a start log of the target application program in each start process of the target application program.
Optionally, as shown in fig. 10, the application start speed monitoring apparatus further includes:
a display module 706, configured to display a list of applications to be measured;
a second receiving module 707, configured to receive an application program selection instruction;
a selecting module 708, configured to select the target application in the list of applications to be measured in response to the application selection instruction.
The application program starting speed monitoring apparatus 700 can implement each process implemented by the application program starting speed monitoring apparatus in the method embodiments of fig. 1 and fig. 3, and is not described herein again to avoid repetition. The application starting speed monitoring apparatus 700 may be implemented by only receiving a monitoring instruction for starting the target application, that is, starting the target application according to the preset number of times, and further, acquiring a loading time consuming time of each display page in at least one display page, and acquiring a loading start frame and a loading end frame of each display page for each display page in each starting process. Next, the starting speed of the target application program may be monitored according to the loading start frame, the loading end frame, and the loading time-consuming time of each presentation page acquired in the starting process of the target application program for the preset number of times. The monitoring process does not need manual intervention. The operation process is simple, convenient and fast, and the efficiency of monitoring the starting speed of the target application program is high. Furthermore, the user can select the application program to be measured from the application program list to be measured according to the requirement of the user, and the method is simple in operation steps, convenient and fast. Moreover, the system state and the network state of the target application program are different when the target application program is started each time, so that the target application program can be started according to the preset times, and the influence of the deviation of single measurement on the whole can be reduced. Namely, the interference of accidental conditions on the whole data can be reduced by increasing the measurement times.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 11, the electronic device includes:
a memory 1101 for storing program instructions;
the processor 1102 is configured to call and execute the program instructions in the memory to implement the application program startup speed monitoring method in the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 1102 and the memory 1101 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
An embodiment of the present invention further provides a readable storage medium, including: the readable storage medium has stored therein a computer program, and when the computer program is executed by at least one processor of the application start-up speed monitoring apparatus, the application start-up speed monitoring apparatus executes the application start-up speed monitoring method described in the above embodiments.
The readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the application program starting speed monitoring apparatus, the electronic device and the readable storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the description in the embodiments of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (14)

1. An application program starting speed monitoring method is characterized by comprising the following steps:
receiving a monitoring instruction for starting a target application program;
responding to the monitoring instruction for starting the target application program, and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page;
for the at least one display page in each starting process, acquiring the time consumed for loading each display page in the at least one display page, and acquiring a loading start frame and a loading end frame of each display page, wherein the time consumed for loading is the time consumed for rendering the display page;
and monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
2. The method of claim 1, wherein obtaining the time it takes to load each of the at least one presentation page comprises:
acquiring a loading starting time point and a loading ending time point of each display page in the at least one display page;
and determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in the at least one display page.
3. The method of claim 2, wherein said obtaining a load start frame and a load end frame for each presentation page comprises:
and intercepting a loading start frame and a loading end frame of each display page from a target video, wherein the target video is a video which is recorded when each starting process of the target application program starts and aims at the starting process.
4. The method of claim 3, wherein said intercepting a load start frame and a load end frame for each presentation page from the target video comprises:
according to the loading starting time point and the loading ending time point of each display page, a video frame of which the difference value between the timestamp and the loading starting time point is smaller than a preset threshold value is intercepted from the target video to serve as a loading starting frame of the display page, and a video frame of which the difference value between the timestamp and the loading ending time point is smaller than the preset threshold value is intercepted from the target video to serve as a loading ending frame of the display page.
5. The method of any of claims 1 to 4, further comprising:
and acquiring a starting log of the target application program in each starting process of the target application program.
6. The method of any of claims 1 to 4, wherein prior to the step of receiving a monitoring instruction for target application launch, the method further comprises:
displaying a list of applications to be measured;
receiving an application program selection instruction;
in response to the application selection instruction, selecting the target application in the list of applications to be measured.
7. An application startup speed monitoring apparatus, comprising:
the first receiving module is used for receiving a monitoring instruction for starting a target application program;
the starting module is used for responding to the monitoring instruction for starting the target application program and starting the target application program according to preset times, wherein each starting process of the target application program comprises at least one display page;
an obtaining module, configured to obtain, for the at least one display page in each starting process, a time consumed for loading of each display page in the at least one display page, and obtain a loading start frame and a loading end frame of each display page, where the time consumed for loading is time consumed for completing rendering of the display page;
and the monitoring module is used for monitoring the starting speed of the target application program according to the loading start frame, the loading end frame and the loading time-consuming time of each display page acquired in the starting process of the target application program for the preset times.
8. The application startup speed monitoring apparatus of claim 7, wherein the acquisition module comprises:
the obtaining submodule is used for obtaining a loading starting time point and a loading ending time point of each display page in the at least one display page;
and the determining submodule is used for determining the time consumed by loading the display page according to the loading starting time point and the loading ending time point of each display page in the at least one display page.
9. The apparatus for monitoring application program startup speed according to claim 8, wherein the obtaining module is specifically configured to intercept a loading start frame and a loading end frame of each presentation page from a target video, where the target video is a video for a startup process recorded at the beginning of each startup process of the target application program.
10. The apparatus for monitoring application program startup speed according to claim 9, wherein the obtaining module is specifically configured to intercept, from the target video, a video frame whose difference between a timestamp and the loading start time point is smaller than a preset threshold as the loading start frame of each presentation page, and intercept, from the target video, a video frame whose difference between a timestamp and the loading end time point is smaller than the preset threshold as the loading end frame of each presentation page, according to the loading start time point and the loading end time point of each presentation page.
11. The application startup speed monitoring apparatus according to any one of claims 7 to 10, characterized in that the application startup speed monitoring apparatus further comprises:
and the acquisition module is used for acquiring the starting log of the target application program in each starting process of the target application program.
12. The application startup speed monitoring apparatus according to any one of claims 7 to 10, characterized in that the application startup speed monitoring apparatus further comprises:
the display module is used for displaying an application program list to be measured;
the second receiving module is used for receiving an application program selection instruction;
and the selection module is used for responding to the application program selection instruction and selecting the target application program in the list of the application programs to be measured.
13. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to implement the application program startup speed monitoring method of any one of claims 1 to 6.
14. A readable storage medium having a computer program stored therein, wherein when the computer program is executed by at least one processor of an application startup speed monitoring device, the application startup speed monitoring device executes the application startup speed monitoring method according to any one of claims 1 to 6.
CN202010343254.9A 2020-04-27 2020-04-27 Application program starting speed monitoring method and device Pending CN111597111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010343254.9A CN111597111A (en) 2020-04-27 2020-04-27 Application program starting speed monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010343254.9A CN111597111A (en) 2020-04-27 2020-04-27 Application program starting speed monitoring method and device

Publications (1)

Publication Number Publication Date
CN111597111A true CN111597111A (en) 2020-08-28

Family

ID=72181251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010343254.9A Pending CN111597111A (en) 2020-04-27 2020-04-27 Application program starting speed monitoring method and device

Country Status (1)

Country Link
CN (1) CN111597111A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765033A (en) * 2021-01-26 2021-05-07 百度在线网络技术(北京)有限公司 Speed testing method, device, equipment and storage medium
CN115373987A (en) * 2022-08-22 2022-11-22 平安付科技服务有限公司 Application program display abnormity detection method and device and storage medium
JP2022551357A (en) * 2020-09-02 2022-12-09 クーパン コーポレイション Systems and methods for analyzing application load times

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015082131A (en) * 2013-10-21 2015-04-27 日本電気株式会社 Monitoring system, monitoring method, monitoring program, and monitoring device
CN108984395A (en) * 2018-06-21 2018-12-11 腾讯科技(北京)有限公司 A kind of application program launching time-consuming test method, device and storage medium
CN108989855A (en) * 2018-07-06 2018-12-11 武汉斗鱼网络科技有限公司 A kind of advertisement cut-in method, device, equipment and medium
CN109710520A (en) * 2018-12-14 2019-05-03 中国平安财产保险股份有限公司 Application startup time-consuming testing method, apparatus, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015082131A (en) * 2013-10-21 2015-04-27 日本電気株式会社 Monitoring system, monitoring method, monitoring program, and monitoring device
CN108984395A (en) * 2018-06-21 2018-12-11 腾讯科技(北京)有限公司 A kind of application program launching time-consuming test method, device and storage medium
CN108989855A (en) * 2018-07-06 2018-12-11 武汉斗鱼网络科技有限公司 A kind of advertisement cut-in method, device, equipment and medium
CN109710520A (en) * 2018-12-14 2019-05-03 中国平安财产保险股份有限公司 Application startup time-consuming testing method, apparatus, computer equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022551357A (en) * 2020-09-02 2022-12-09 クーパン コーポレイション Systems and methods for analyzing application load times
KR20230048475A (en) * 2020-09-02 2023-04-11 쿠팡 주식회사 Systems and methods for analyzing application loading times
KR102790250B1 (en) * 2020-09-02 2025-04-04 쿠팡 주식회사 Systems and methods for analyzing application loading times
CN112765033A (en) * 2021-01-26 2021-05-07 百度在线网络技术(北京)有限公司 Speed testing method, device, equipment and storage medium
CN112765033B (en) * 2021-01-26 2024-08-02 百度在线网络技术(北京)有限公司 Speed testing method, device, equipment and storage medium
CN115373987A (en) * 2022-08-22 2022-11-22 平安付科技服务有限公司 Application program display abnormity detection method and device and storage medium
CN115373987B (en) * 2022-08-22 2025-12-19 平安付电子支付有限公司 Method and device for detecting abnormal display of application program and storage medium

Similar Documents

Publication Publication Date Title
CN110362483B (en) Performance data acquisition method, device, equipment and storage medium
EP3019971B1 (en) Methods and systems for performance monitoring for mobile applications
CN108874268B (en) User behavior data acquisition method and device
CN110362480A (en) Client buries a test method, device, equipment and storage medium
WO2020231745A1 (en) Analyzing time-series data in an automated application testing system
CN110941553A (en) A code detection method, apparatus, device and readable storage medium
CN111597111A (en) Application program starting speed monitoring method and device
CN111061647A (en) Software performance automatic testing method and device and electronic equipment
CN112835667A (en) Interface element positioning method, device and storage medium
EP3851966A1 (en) Method for acquiring launching duration of application interface, apparatus, and terminal device
CN111090593A (en) Method, device, electronic equipment and storage medium for determining crash attribution
CN111124774B (en) Method and related device for testing stability of server in starting process
CN111240967B (en) Code generation method and device
CN110311806B (en) Mobile application program interface response delay diagnosis method, system and terminal
CN112612697A (en) Software defect testing and positioning method and system based on byte code technology
CN112153375A (en) Front-end performance testing method, device, equipment and medium based on video information
CN110389872B (en) Data acquisition method and device and related equipment
CN113590498B (en) Method and system for testing application starting time of desktop operating system
CN118884267B (en) Battery power consumption test method, device, equipment and storage medium
CN110928787B (en) Automatic test script recording and playback method, device, equipment and storage medium
CN113535841A (en) Data verification method, device and equipment and computer readable storage medium
CN114676041A (en) Game testing method and system
CN115017059B (en) Fuzzy test method and system for graphical user interface program
CN116820971A (en) Data processing method and system for front-end test and storage medium
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828