This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Mechanism to assess CPU utilization and Task Utilization

Hi,

Is there any mechanism to assess the CPU utilization % when the underlying operating system in not TI/RTOS.

i.e, i have a TIVA C series (TM4C129NCPDT) microcontroller, the software is developed using QP/C++ framework.

Since the underlying RTOS is not a TI/RTOS is it possible to measure the CPU utilization using the system/RTOS anyalsyer features of CCS or is there any alternative workaround to cater this need?

Request your help on this subject.

Thanks,

-Nikhilesh

  • Nikhilesh,

    I'm afraid you'll have to develop your own mechanism for measuring CPU utilization.

    In general, TI-RTOS uses a free-running timer counter register to measure the length of time between calls to functions that are executed when there is nothing else to do in the application.

    The amount of time spent outside the idle functions divided by the amount of time spent in the idle functions is a rough measure of CPU utilization.

    Alan
  • Thank you Alan; i am hoping there would be some non-intrusive mechanism by XDS debugger through which i can pull this data.