have freertos cpuusage for
1.max cpuusage
2. each rack cpuusage ?
3. stack address of each task to check normally
stack usage in run-time
and also i see freertos use write one const value in stack before use it
is nice
better if add function to chk change if this const value in run-time and report it
i agree is get some CPU usage but in optional run
and then report in debug time
If you see UCOS II rtos source or ebook,It uses idle task hook function to calculate CPU usage for all tacks,
The method is:
In every one second ,calculate the time that you are in idle task ,so you can calculate persentage of idle time in each second and obtain cpu usage by subtacting it from 100%.
CPU Usage = ((1000msec - (idle time in msec))/1000)*100)