User`s guide
Implicit DSP/BIOS Instrumentation
Instrumentation 3-21
Figure 3-10. CPU Load Graph Window
All CPU activity is divided into work time and idle time. To measure the CPU
load over a time interval T, you need to know how much time during that
interval was spent doing application work (t
w
) and how much of it was idle
time (t
i
). From this you can calculate the CPU load as follows:
Since the CPU is always either doing work or in idle it is represented as
follows:
You can rewrite this equation:
You can also express CPU load using instruction cycles rather than time
intervals:
3.4.2.1 Measuring the CPU Load
In a DSP/BIOS application, the CPU is doing work when any of the following
are occurring:
❏ hardware interrupts are serviced
❏ software interrupts and periodic functions are run
❏ task functions are run
❏ user functions are executed from the idle loop
❏ HST channels are transferring data to the host
❏ real-time analysis data is uploaded to the DSP/BIOS Analysis Tools
---- - ×
-------------- ×
---------------- ×










