Parent

Namespace

Methods

Class/Module Index [+]

Quicksearch

Sys::ProcTable

Constants

VERSION

The version of the sys-proctable library

Public Class Methods

fields click to toggle source

Returns an array of fields that each ProcTableStruct will contain. This may be useful if you want to know in advance what fields are available without having to perform at least one read of the /proc table.

static VALUE pt_fields(VALUE klass){
ps(pid=nil) click to toggle source
ps(pid=nil){ |ps| ... }

In block form, yields a ProcTableStruct for each process entry that you have rights to. This method returns an array of ProcTableStruct’s in non-block form.

If a pid is provided, then only a single ProcTableStruct is yielded or returned, or nil if no process information is found for that pid.

static VALUE pt_ps(int argc, VALUE* argv, VALUE klass){

[Validate]

Generated with the Darkfish Rdoc Generator 2.