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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com