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
  • Hello Tamir,

    Why do you think, this approach wont work in RTX?

    Even if RTX is preemptive and doesn't have a fixed window size to execute tasks, I believe, then also this approach could give a measure of CPU idle time. Isnt it?

    If i use context switching to save a timer value, then also i need to check for idle task's id etc...and then its just a matter of using a time difference right away instead of using variables.

    Am I missing something?

    Thanks & Best Regards,
    Vivek

Reply
  • Hello Tamir,

    Why do you think, this approach wont work in RTX?

    Even if RTX is preemptive and doesn't have a fixed window size to execute tasks, I believe, then also this approach could give a measure of CPU idle time. Isnt it?

    If i use context switching to save a timer value, then also i need to check for idle task's id etc...and then its just a matter of using a time difference right away instead of using variables.

    Am I missing something?

    Thanks & Best Regards,
    Vivek

Children