Read out processor load

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

···

--
Posted via http://www.ruby-forum.com/.

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

···

--
Posted via http://www.ruby-forum.com/\.

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

Paul

···

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...

K. R. wrote:

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

gem install sys-cpu, I think.

···

--
Alex

Michael Linfield 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.