Method and apparatus for function running state statistics

A technology of statistical functions and running status, applied in the computer field, can solve problems such as complex implementation, and achieve the effect of simple implementation and strong versatility
CN101477491AInactive Publication Date: 2009-07-08NEW H3C TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
NEW H3C TECH CO LTD
Publication Date
2009-07-08
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a device for recording function operation states. In the invention, a proxy function, a first hook function and a second hook function are preset. When the function states are recorded, the function states for recording are dynamically replaced by proxy function under the triggering of a guest replacement command, and the order of the proxy function change into the first hook function, the function for recording and the second hook function. Two hook functions have recording function, so that the state record to the function for recording can be conveniently realized through dynamic replacement.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a function statistics technology in the computer field, in particular to a method and a device for counting the running status of a function. Background technique

[0002] Communication products are generally embedded systems based on task scheduling. A task is the smallest operating unit that gathers various system resources to realize a specific function in an embedded system. A task includes multiple functions, and the functions in the task can be considered as the smallest constituent unit of the task.

[0003] Embedded systems usually rely on tasks to actively release CPU resources to implement inter-task scheduling. If one or some tasks take too long, other tasks will not be scheduled, resulting in an infinite loop. The clock interrupt provides a statistical function of the time occupied by each task. When it is detected that a task in the system takes too long, the call stack will be printed on the screen. The call ...

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