Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_G
Beginner
46 Views

measuring Cpu Utilization

I'm looking for a cross-platform method to measure CPU utilization programatically. I use the Intel performance primitives (currently using 5.1 and 5.3) and have not found an Ipp call to get this information. I have noticed some 5.3 sample code that attempts to do this (umc_video_enc_con.exe in the audio-video-codecs section). The source file; umc_sys_info.cpp has methods to retreive max and avg cpu utilization. This works greate on Windows, but reports 0.0 for avg cpu and max cpu when running on Linux.
Anyone know of a way to to this? Any help would be appreciated.
Thanks.
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
46 Views

Hello,

An average CPU utilizationmeasure is operating system metric, which provided through system calls.We minimise the use of system calls in IPP data processing functions (in fact we do use only memory allocation service in some functions). That policy provide independency on operating system and allow to use IPP for example in kernel mode.

Regards,
Vladimir