Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

measuring Cpu Utilization

Chris_G
Beginner
366 Views
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
366 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

0 Kudos
Reply