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

Method and system for estimating property of embedded type system

An embedded system and performance technology, applied in the evaluation method and system field of embedded system performance, can solve the problems that cannot be counted, embedded system performance evaluation, running time and running status cannot be accurately counted, and achieve accuracy high effect

Active Publication Date: 2011-08-24
ZTE CORP
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The Chinese patent publication number is CN200810142490.3, and the title of the invention is "a method and device for measuring CPU occupancy rate". However, due to the limitation of timer interrupts, this program cannot accurately count the running time and running status of each function, because the program counts the results obtained by sampling discrete multiple running moments , the function running and exiting between two timer interrupts cannot be counted, so it is impossible to accurately evaluate the performance of the embedded system, and there is an urgent need for an implementation that can accurately evaluate the performance 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
  • Method and system for estimating property of embedded type system
  • Method and system for estimating property of embedded type system
  • Method and system for estimating property of embedded type system

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0104] Example 1: The corresponding relationship between the process number and the index of the recording area.

[0105] Such as figure 2 Shown is a schematic diagram of the recording area corresponding to the process number in the present invention. After the system is powered on, the corresponding recording area is initialized for each process, and the corresponding relationship between the process number and the index of the recording area is established. When the stub function including the stub function and the stub function is called by the current process, the stub The function can index to the corresponding record area according to the process number of the current process.

example 2

[0106] Example 2: Use the records in a record area to count the running time of each function in a process. At this time, only the pile-in function and the pile-out function are included.

[0107] Such as image 3 Shown is a schematic diagram of a timestamp record of a process calling a function. Since the call of the function Function1 is recorded at the time T1; the call of the function Function2 is recorded at the time T2; the call of the exit function Function2 is recorded at the time T3; the call of the exit function Function1 is recorded at the time T4. It can be known that the call relationship between functions is as follows:

[0108] void Function1()

[0109] {

[0110] Function2();

[0111]}

[0112] Therefore, it can be calculated that the running time of the function Function1 is T4-T1; the running time of the function Function2 is T3-T2.

example 3

[0113] Example 3: Use the records in a record area to count the running time of each function in a process. At this time, in addition to including the stub-in function and the stub-out function, a process switching hook function is also included.

[0114] Such as Figure 4 As shown, because in the process recording area, it is different from figure 2 It also records the time point T3 when the operating system schedules the current process to switch out of the running state, and the time point T4 when it switches back into the running state. Therefore, the running time of the function Function1 can be calculated as (T6-T1)-(T4-T3) ; The running time of Function2 is (T5-T2)-(T4-T3).

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 estimating the property of an embedded type system, comprising the following steps: continuously collecting the time information of a function and the state information of a corresponding function in real time; and realizing the property estimation of the embedded type system in a way of collection result statistics. The invention also discloses a system for estimating the property of the embedded type system, comprising a collection unit, a statistic unit and an estimation unit, wherein the collection unit is used for continuously collecting the time information of the function and the state information of the corresponding function in real time and sending a collection result to the statistic unit; the statistic unit is used for carrying out the statistics on the collection result and sending a statistic result to the estimation unit; and the estimation unit is used for realizing the property estimation of the embedded type system according to the statistic result. The method and the system can precisely estimate the property of the embedded type system.

Description

technical field [0001] The invention relates to the field of embedded systems, in particular to a method and system for evaluating the performance of an embedded system. Background technique [0002] In existing embedded systems, the processor (CPU) occupancy rate when the system is running is an important index to measure the performance of the system. The usual measurement method is to start an idle task with the lowest priority when the system is running. The running time slice of the idle task, and then subtract the running time slice of the idle task from the total running time to get the running time of all other processes in the system. In this way, the CPU usage of the embedded system can be calculated Rate. For example, the Chinese patent publication number is CN02157690, and the title of the invention is "a method for detecting CPU usage in a multi-task real-time operating system." The running time slice of each process. It takes the process as the basic statist...

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/34G06F9/48
Inventor 赵阳王治春肖理
Owner ZTE CORP
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