Path: | doc/top.txt |
Last Update: | Wed Feb 02 02:29:29 +0000 2011 |
A simple 'top' interface for Ruby
Requires the "sys/proctable" package (which should be installed along with this package).
require "sys/top" Sys::Top.top(5).each{ |ps| p ps }
VERSION
Returns the version number of this package as a String.
Sys::Top.top(number=10, field="pctcpu")
Returns an array of ProcTableStruct's. The size of the array (i.e. the number of processes) that it returns is based on +number+, and sorted by +pctcpu+. By default, the size and field values are 10 and "pctcpu", respectively.
Not all fields are available on all platforms. Please check your platform specific documentation for which fields are available.
None that I'm aware of. Please log bug reports on the project page at http://www.rubyforge.org/projects/sysutils
Artistic 2.0
(C) 2004-2009 Daniel J. Berger All Rights Reserved.
This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
Daniel J. Berger