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

Method and component for counting function calls in application programs

An application and function call technology, applied in the field of live video, can solve the problem that there is no way to count the time and number of calls of each function

Active Publication Date: 2021-01-01
WUHAN DOUYU NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If it is during software development, it is relatively easy to add statistics on the call time and number of calls of each function, but if the software has been released, there is no way to count the call time and number of calls of each function

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 and component for counting function calls in application programs
  • Method and component for counting function calls in application programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention provides a method and components for counting function calls in application programs. In order to prevent the application program after release from being unable to monitor its function call conditions (call time, call times, etc.), the present invention has written a method that can be used for A component that monitors the application when it is running, and then injects the component into the running application process. This component has the function of monitoring all function calls of the application, and counts the number of calls and call time of each function , and finally output the statistical results. So the subsequent HOOK (hook function, used to monitor function calls) function codes are all written in this component. There are many ways to inject components, such as remote thread injection, message hook injection, and so on.

[0031] The application program of the present invention can be any application program, such as live video ...

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 carrying out statistic on function calling in application programs, and aims at avoiding the problem that the issued application programs cannot monitor the function calling conditions thereof. The method is applied in a component for carrying out statistic on function calling in application programs, and is used for monitoring the function calling conditions of the application programs. The method comprises the following steps of: when an application program is operated, carrying out monitoring and statistic on calling frequencies of function heads of all the functions in a calling information file MAP in a preset time and calling moments of the function heads of all the functions by utilizing a hook function library in the component; carrying out monitoring and statistic on calling moments of function tails of all the functions in the MAP by utilizing the hook function library; and determining calling times of all the functions in the preset time on the basis of the calling moments of the function heads of all the functions in the MAP and the calling moments of the function tails of all the functions.

Description

technical field [0001] The present application relates to the field of live video broadcasting, in particular to a method and component for counting function calls in application programs. Background technique [0002] At present, with the advancement of network communication technology and the speed-up of broadband network, webcasting has been more and more developed and applied. Especially in the field of game live broadcast, more and more viewers will watch the live broadcast of game anchors. For the game live broadcast, the anchor uses the live broadcast software provided by the live broadcast platform to broadcast live. For client software, it is usually necessary to count the performance bottlenecks of the software, so as to improve the performance of the software and improve the user experience. If it is during software development, it is relatively easy to add statistics on the calling time and calling times of each function, but if the software has been released, ...

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 Patents(China)
IPC IPC(8): G06F11/34
CPCG06F11/3452
Inventor 周志刚陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD