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
  • Thanks for your replies, Stuart and Per.

    I measured the idle time in a while(1) loop for a period of 10 ms.

    Then i included RTOS and TCP IP stack from keil. I included the variable counter in the idle task's infinite loop. I observe that the variable hasnt been incremented at all.

    What could be the reasons? Does my TCP IP stack utilize the entire CPU time waiting for events? In this case how do i measure CPU load?

    Thanks in advance,
    Vivek

Reply
  • Thanks for your replies, Stuart and Per.

    I measured the idle time in a while(1) loop for a period of 10 ms.

    Then i included RTOS and TCP IP stack from keil. I included the variable counter in the idle task's infinite loop. I observe that the variable hasnt been incremented at all.

    What could be the reasons? Does my TCP IP stack utilize the entire CPU time waiting for events? In this case how do i measure CPU load?

    Thanks in advance,
    Vivek

Children