Hi I want to ***** the resources used by my program while run time. As My project requirement is to ***** the resources used by the my application.
Can any one help me How do I can find these resources usage run time .
Try to ******.
Or a static analysis of your compiler, and/or runtime analysis via debugger.
What about without debugger ? I want to display both the resources usage by my application
CPU utilization is the time you don't spend in the idle loop. Use a free running TIM to see how much time you spend there.
For memory, walk the heap to see how much of the memory arena you are using, and check the maximal depth of the stack.
Good debuggers support an easy read-out of cycle count registers.
Whatever that might be useful for.
And there is the old-fashioned way for load measurement.
Set a GPIO high whenever your application is actually busy, and watch with a scope.
Works well with a cyclical approach.
Some RTOSes already do this for you.
Hi , I am using FreeRTOS , How can I measure the RAM utillization and CPU utilization with by my appllication with FreeRTOS support.
Is there any API to find it.
As I remember, the documentation of FreeRTOS is "un-free" (as in "free beer"), i.e. one has to pay for.
Perhaps you find appropriate examples.
Yes, FreeRTOS books and manuals can be purchased; but, the information is also available on-line.
FreeRTOS does have RAM utilization functions, if you are using one of FreeRTOS's heap allocate methods and your port supports xPortGetFreeHeapSize().
FreeRTOS also has API for CPU utilization, see vTaskList().
Retrieving data ...