Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Calculating processor usage (M68K)



On 25 Nov 2003 01:34:23 -0800, [EMAIL PROTECTED] (test) wrote:

>Could someone tell me know how to calculate MIPS being used by an
>existing application, on an existing processor?
>
>I'm not looking for raw processor power available (so benchmark pgms
>won't do). We have an application (real-time, infinte loop) running on
>the processor, and want to know how busy the processor is on an
>average. It would suffice even if we could only determine the
>worst-case utilization. The application runs on pSOS on M68K.


You may write a timer interrupt (period depends on how accurated your
figures must be) and check which is the return address i.e. the
interrupted function.
Then count numbers of interrupts and number of times where you did
interrupt the idle loop (or a self written low-prio task).

---
42Bastian
Do not email to [EMAIL PROTECTED], it's a spam-only account :-)
Use <same-name>@epost.de instead !



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.