This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Cpu utilization
On 2008-04-26, Shilpa <shilpa@garrettcom.com> wrote:
> Hi all
>
> I am looking for how to calculate the CPU utilization in the switch. Iam
> using ECOS and the processor is MPC8245. I kindly request you to guide me
> in calculation.
The usual method is to increment a counter in a loop in the
idle task. Look at the timer delta for a fixed period of time
(1 second, 10 seconds, etc.). CPU utilization is roughly
proportional to the inverse of that delta value.
--
Grant Edwards grante Yow! Yow! I just went
at below the poverty line!
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss