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

Statistical method and device for public function execution time consumption, storage medium and terminal

A technology for executing time-consuming and statistical methods, applied in computing, software engineering design, electrical digital data processing, etc., can solve problems such as inability to efficiently count time-consuming method function calls, so as to improve the efficiency of target public function execution data statistics, Improve performance optimization efficiency, reduce redundant and invalid data effects

Pending Publication Date: 2020-12-18
GUANGZHOU HUYA TECH CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome the above technical problems, especially the time-consuming problem of invoking method functions in third-party resource files that cannot be efficiently counted and accessed by existing technologies, the following technical solutions are proposed:

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 public function execution time consumption, storage medium and terminal
  • Statistical method and device for public function execution time consumption, storage medium and terminal
  • Statistical method and device for public function execution time consumption, storage medium and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present application, and are not construed as limiting the present application.

[0047] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the wording "comprising" used in the description of the present application refers to the existence of the stated features, integers, steps, and operations, but does not exclude the existence or addition of one or more other features, integers, steps, and operations.

[0048] Those skilled in the art can understand that, unless otherwise ...

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 the field of application development, in particular to a statistical method and device for public function execution time consumption, a storage medium and a terminal.The method comprises the steps that in the compiling period of an application program, configuring a compiling script of a third-party resource file of the application program, inserting a judgment code intoa public function in the third-party resource file through the compiling script; when the application program service code runs, obtaining a current stack of the thread according to the judgment code,obtaining calling information of a public function according to the stack, and determining a target public function called when the application program service code runs from the calling information;and acquiring calling starting time and calling ending time of the target public function, and determining execution time consumption data of the target public function according to the calling starting time and the calling ending time. According to the method, the execution time consumption of the public function called by the application program service layer in the third-party resource file can be counted, redundant and invalid data are reduced, and the execution data counting efficiency is improved.

Description

technical field [0001] The present application relates to the field of application development, in particular to a statistical method, device, storage medium and terminal for performing time-consuming public functions. Background technique [0002] SDK generally refers to the software development toolkit. In the process of Android project development, more or less third-party SDKs are connected for development. Third-party SDKs are also called third-party resource files. After accessing third-party SDKs, statistics are required. It takes time to call the methods of each SDK in the Android project to know the specific performance of each SDK. Currently, each method function in the SDK code is manually buried, and the operation of each method is monitored and reported. The manual method will Due to incomplete coverage, it is impossible to accurately count the various method functions of the SDK, and each time the buried point and statistics need to be changed according to the ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/4441G06F8/443Y02D10/00
Inventor 黄帆
Owner GUANGZHOU HUYA TECH CO LTD
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