Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and system for testing cold start duration of application program

A technology of application programs and testing methods, applied in software testing/debugging, error detection/correction, instruments, etc., to solve the problems of inability to judge the cold start process, inability to know the time, and time-consuming cold start execution process.

Pending Publication Date: 2021-05-11
GUANGZHOU PINWEI SOFTWARE
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the cold start execution process takes longer than the hot start execution process
[0003] In the existing technology, the cold start time from when the user starts the app to when the app is started is usually tested, but the time required for some steps in the cold start process cannot be known, and some targeted judgments on the cold start process cannot be made.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and system for testing cold start duration of application program
  • Method, device and system for testing cold start duration of application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] The application program (app for short, the same below) needs to go through two stages when it is cold started. The first stage is when the user clicks on the app and the system invokes the mian function of the app. The second stage is the mian function of the app. The stage from the function to the end of the initialization of the app interface, therefore, the total duration of the cold start of the App = the loading time before main() is executed (pre-miantime) + the loading time after main() is executed (post-main time).

[0052] The main function, also known as the main function, the program execution always starts from the main function. If there are other functions, it returns to the main function after completing the call to other functions, and finally the main function ends the entire program.

[0053] In the IOS system scenario, the first stage of pre-starting usually goes through the following stages:

[0054]S10. Load the dynamic library. When loading a dyn...

Embodiment 2

[0089] In order to execute the method for testing the cold start duration of the application in the first embodiment above, this embodiment provides a corresponding device for testing the cold start duration of the application, which at least includes:

[0090] The first processing module is used to obtain all executable files of the App in a cold start;

[0091] The second processing module is used to mark the start and end moments in the load function corresponding to each executable file;

[0092] The third processing module is used to obtain the loading time before the execution of the main function of the App at cold start based on the start time marked in all the load functions.

[0093] In a preferred embodiment, the second processing module includes:

[0094] a first obtaining unit, configured to obtain a dynamic link library on which each executable file depends;

[0095] The marking unit is used to mark the start and end times in the load function corresponding to ...

Embodiment 3

[0108] Corresponding to the above method and device, this embodiment provides a computer system, including:

[0109] one or more processors; and

[0110] A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, perform the following operations:

[0111] Obtain all executable files of the application in a cold start;

[0112] mark the start and end moments in the load function corresponding to each executable file;

[0113] Obtain the loading time before the execution of the main function of the application program at cold start based on the starting moments marked in all the load functions.

[0114] in, figure 2 The architecture of the computer system is exemplarily shown, which may specifically include a processor 1510 , a video display adapter 1511 , a disk drive 1512 , an input / output interface 1513 , a network interface 1514 , and a memor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for testing cold start duration of an application program. The test method comprises the following steps: acquiring all executable files of the application program in one-time cold start; marking starting and ending moments in a load function corresponding to each executable file; and based on all the starting moments marked in the load function, acquiring loading duration of the application program before a main function is executed during cold start. The cold start duration test method for the application program can effectively test and obtain the loading duration of the application program before the main function is executed during cold start, so that the pre-starting process can be evaluated, monitored and optimized in a targeted manner in the later period.

Description

technical field [0001] The invention relates to the technical field of computer information processing, in particular to a method, device and system for testing cold start duration of application programs. Background technique [0002] There are two ways to start an application program (App), cold start and hot start. Cold start means that before the app is clicked to start, the process of the app is not in the system, and the system needs to create a new process and assign it to the app. Hot start refers to the process in which the App is returned to the background after a cold start, the process of the App is still in the system, and the process of returning to the App at this time. It can be seen that the cold start execution process takes longer than the hot start execution process. [0003] In the existing technology, the cold start time from when the user starts the App to when the App is started is usually tested, but the time required for some steps in the cold sta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3644
Inventor 赖龙生
Owner GUANGZHOU PINWEI SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products