How to get cpu utilization through code with least overhead?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I need to write code to get and record the cpu utilization in certain interval with the least overhead.
Could anybody please advise me on how to proceed ? I tried looking at the code for "top" command to see
how it works but couldn't figure out much.
I don't want to write script that uses commands and pulls out the results as I want the overhead to be as small as possible.
 
Thanks
Vaibhav Jain
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux