A method for counting the number of function calls, a storage medium and a terminal device

A technology of the number of function calls and the number of calls, used in hardware monitoring and other directions

Active Publication Date: 2021-04-20
GENEW TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, on the one hand, because the embedded system is placed in the kernel, and on the other hand, because the number of functions in the embedded system is tens of thousands, it is impossible to use the exhaustive method to count the number of calls of the functions of the embedded system.

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
  • A method for counting the number of function calls, a storage medium and a terminal device
  • A method for counting the number of function calls, a storage medium and a terminal device
  • A method for counting the number of function calls, a storage medium and a terminal device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention provides a method, storage medium and terminal device for counting the number of function calls. In order to make the purpose, technical solutions and effects of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0034] It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of stated features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other f...

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 counting the number of function calls, a storage medium, and a terminal device. The method includes: when executing a branch instruction, triggering a debugging interruption and obtaining a PC value when the debugging interruption is triggered; The number of calls is increased by one, and the number of calls of the function is counted according to the number of calls of the PC value. The present invention triggers the debugging interruption through the branch instruction, enters the debugging interruption program, and obtains the PC value when the interruption is triggered through the debugging interruption program, and adds one to the calling times of the PC value, and then searches the corresponding PC value in the symbol table according to the PC value. function, and then add one to the number of calls of the function, so as to realize the statistics of the number of calls of the function. Moreover, the statistical method provided by the invention can count the calling times of the functions stored in the kernel, which solves the problem that the calling times of the functions in the embedded system cannot be counted.

Description

technical field [0001] The invention relates to the technical field of embedded systems, in particular to a method for counting the number of function calls, a storage medium and a terminal device. Background technique [0002] With the development of the electronic information industry, the application of embedded systems has gradually penetrated into many fields such as industrial control, positioning and navigation, and mobile terminals. Because the embedded system has been applied by the method, the performance of the embedded system has become the focus of attention. In the embedded system performance optimization method, a method that firstly counts the execution times of each function in the embedded system, and then individually optimizes the performance of the functions whose execution times are in the top 10% can improve the performance of the distributed system. . For the above optimization methods, how to count the number of executions of each function becomes ...

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
Inventor 李小军孟庆晓向卫东
Owner GENEW TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products