All of lore.kernel.org
 help / color / mirror / Atom feed
* How to get cpu utilization through code with least overhead?
@ 2011-07-28 17:38 Vaibhav Jain
  2011-07-28 17:45 ` Mulyadi Santosa
  0 siblings, 1 reply; 7+ messages in thread
From: Vaibhav Jain @ 2011-07-28 17:38 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110728/b6cc95da/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-30 16:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 17:38 How to get cpu utilization through code with least overhead? Vaibhav Jain
2011-07-28 17:45 ` Mulyadi Santosa
2011-07-28 17:51   ` Vaibhav Jain
2011-07-28 23:56     ` Vaibhav Jain
2011-07-29  0:30       ` Raghu Udiyar
2011-07-29 19:15       ` Jonathan Neuschäfer
2011-07-30 16:29         ` Vaibhav Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.