Read out processor load

How can I read out the processor load with a rubyapp?
thanks for help…

K. R. wrote:

How can I read out the processor load with a rubyapp?
thanks for help…

perhaps?

http://www.noobkit.com/ruby-process-getrlimit

  • Mac

On Wed, Nov 07, 2007 at 12:07:10AM +0900, K. R. wrote:

How can I read out the processor load with a rubyapp?
thanks for help…

On Linux you can read load from /proc/loadavg. See the other replies
for other ideas.

Paul

Michael L. wrote:

K. R. wrote:

How can I read out the processor load with a rubyapp?
thanks for help…

perhaps?

http://www.noobkit.com/ruby-process-getrlimit

  • Mac

On Linux, do

a = loadavg

I can’t help you with Windows, but I think there’s something similar
with Macs.

K. R. wrote:

How can I read out the processor load with a rubyapp?
thanks for help…
gem install sys-cpu, I think.