Class Sys::Top
In: lib/sys/top.rb
Parent: Object

The Top class serves as a toplevel name for the ‘top’ method.

Methods

top  

Constants

VERSION = '1.0.2'   The version of the sys-top library

Public Class methods

Returns an array of Struct::ProcTableStruct elements containing up to num elements, sorted by field. The default number of elements is 10, while the default field is ‘pctcpu’.

Exception: the default sort field is ‘pid’ on Linux and Windows.

[Validate]