Hi,
I use TI 816x evm and RDK 01.05.00.08.
My question is how to get cpu loading and memory usage on each M3 processor?
Is there any utility can print out these message?
Thank you very much!
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.
The M3 cpu loading can be print out at function Utils_prfLoadPrintAll() of Utils_prf.c.
Vps_printf("\r\n");
Vps_printf(" %d: LOAD: CPU: %d%% HWI: %d%%, SWI:%d%% \n", Clock_getTicks(),
cpuLoad, hwiLoad, swiLoad);
What is the mean about hwiLoad and swiLoad?
Hi,
HWI load means CPU load in interrupt. How much processing is done in interrupt, SWI load means processing done in software interrupt. BIOS supports some software interrupts also. And CPU load is the cumulative load of hardware interrupt, software interrupt and task context. For all practical purpose CPU load is enough to notice.
Regards,
Hardik Shah
Hi Medwin
The heap status also can be print out by send command "SYSTEM_COMMON_CMD_PRINT_STATUS".
You can get this print message:
Vps_printf
(" %d: SYSTEM : Heap Free Space (System = %d bytes, FrmBuf = %d bytes,
BitBuf = %d bytes, Mbx = %d msgs) \r\n",
Clock_getTicks(), Utils_memGetSystemHeapFreeSpace(),
Utils_memGetBufferHeapFreeSpace(),
Utils_memGetBitBufferHeapFreeSpace(),
Utils_mbxGetFreeMsgCount());