Unlock instant, AI-driven research and patent intelligence for your innovation.

Statistical method and device for consumed time of method in application program, computer equipment and medium

A technology of application programs and statistical methods, which is applied in the computer field, can solve problems such as performance overhead, inability to count time-consuming, and analysis of statistical results with large differences, etc., to achieve the effect of reducing performance overhead and improving accuracy

Pending Publication Date: 2020-06-05
SHANGHAI JUNZHENG NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The Traceview tool has two modes, namely sample and instrument mode. The sample mode only counts the time consumption of some methods, but cannot count the time consumption of all methods in the application. Although the instrument mode can obtain the time consumption of all methods in the application Situation and call logic, but this mode will bring great performance overhead, the time-consuming statistical results of the method are very different from the actual situation, and the analysis of statistical results is more complicated, etc.
Although the performance loss of the Systrace tool is small, this tool can only monitor the time consumption of system applications

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
  • Statistical method and device for consumed time of method in application program, computer equipment and medium
  • Statistical method and device for consumed time of method in application program, computer equipment and medium
  • Statistical method and device for consumed time of method in application program, computer equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0046] In one embodiment, such as figure 1 As shown, a method for counting the time consumption of an in-application method is provided. This embodiment uses this method as an example to illustrate a terminal. It can be understood that this method can also be applied to a server, and can also be applied to a terminal and a server. system, and realized through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0047] S102: When the application starts, start a time-consuming analysis process to monitor the li...

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 relates to a statistical method and device for consumed time of a method in an application program, computer equipment and a medium. The method comprises the steps: when an application program is started, a time-consuming analysis process is started to monitor the life cycle of each method in the application program; whether an instrumentation plug-in is executed or not is judged, and when the instrumentation plug-in is executed, the execution starting time and the execution ending time of the method involved in the application program are recorded through the instrumentation plug-in; the execution starting time and the execution ending time are sent to the time-consuming analysis process; and in the time-consuming analysis process, the consumed time of each method is calculated and obtained according to the execution starting time and the execution ending time, and the consumed time is stored. By adopting the method, time consumed by the method in the application programcan be accurately counted.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method, device, computer equipment and media for counting the time consumption of a method in an application program. Background technique [0002] The time consumption of in-app methods is an important factor reflecting the fluency of the application, especially in systems based on a single-process message model, in which there is only one main process to refresh the UI interface, once the main process The internal method is time-consuming, and the drawing of the interface will become very stuck. Therefore, it is of great significance to improve the fluency of the application to quickly count the time-consuming situation of the main process method in the application and optimize the method for the high time-consuming method. [0003] Taking the method time-consuming statistics of the Android application as an example, the existing tools for counting the time-consu...

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/30G06F11/34
CPCG06F11/302G06F11/3051G06F11/3419G06F11/3452
Inventor 杨磊张二江
Owner SHANGHAI JUNZHENG NETWORK TECH CO LTD