<div>Hi,</div>
<div> </div>
<div>I need to write code to get and record the cpu utilization in certain interval with the least overhead.</div>
<div>Could anybody please advise me on how to proceed ? I tried looking at the code for &quot;top&quot; command to see</div>
<div>how it works but couldn&#39;t figure out much.</div>
<div>I don&#39;t want to write script that uses commands and pulls out the results as I want the overhead to be as small as possible.</div>
<div> </div>
<div>Thanks</div>
<div>Vaibhav Jain</div>