Method and apparatus for function running state statistics
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 2 Figure 3
Abstract
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 ...