This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Measuring CPU utlization

Hello,

I wish to measure the CPU utlization for a cortex processor running an RTOS (keil RTX). Without an RTOS, i can measure the idle time to come to some conclusion. But with RTOS, can someone guide me how to measure CPU utlization?

Thanks & Best Regards
Vivek

Parents
  • Hi Padma,

    I used Stuart's method. Inside the while (1) loop, i keep incrementing a counter variable. I reset the variable periodically. The period is something that i defined. (say 10 ms). I used to store these data in an array to make an iterative measurement.

    Iam equally curious about your method using a logic analyzer. (though i dont have one to ake use of)

    hope this helps.

    BR/ Vivek

Reply
  • Hi Padma,

    I used Stuart's method. Inside the while (1) loop, i keep incrementing a counter variable. I reset the variable periodically. The period is something that i defined. (say 10 ms). I used to store these data in an array to make an iterative measurement.

    Iam equally curious about your method using a logic analyzer. (though i dont have one to ake use of)

    hope this helps.

    BR/ Vivek

Children