Hi all,
Is there a way to read the CPU Load value so I may print it out during the run time?
Regards,
Pavel
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.
Hi all,
Is there a way to read the CPU Load value so I may print it out during the run time?
Regards,
Pavel
For DM355:
Cpu_Attrs cpuAttrs = Cpu_Attrs_DEFAULT;
Cpu_Handle hCpu = Cpu_create(&cpuAttrs);
Int cpuLoad = 0;
if (Dmai_EOK != Cpu_getLoad(hCpu, &cpuLoad))
cout << "Can't get CPU load!" << endl;
else
cout << "CPU load " << cpuLoad << "%" << endl;
You can read dvsdk_2_00_00_22/dmai_1_20_00_06/docs/html/group__ti__sdo__dmai___cpu.html