
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
[EMAIL PROTECTED] (42Bastian Schick) wrote in message news:<[EMAIL PROTECTED]>... > 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). > This works well if you have a spare timer that can be programmed to issue a non-maskable (level 7 on 68k) interrupt. You can use a buffer to capture the value of the program counter and use the data to analyse the systems steady-state behaviour (if it has one!). I have also used the abort button for this purpose but it made my finger tired. > --- > 42Bastian > Do not email to [EMAIL PROTECTED], it's a spam-only account :-) > Use <same-name>@epost.de instead !
| <-- __Chronological__ --> | <-- __Thread__ --> |