dshaw/proc — pull request #4 by bahamas10 (2012-07-07 20:44:00+00:00)
Title: Adding psinfo

* Added /proc/pid/psinfo struct parser
* Updated readme and CLI usage
* Added `illumos` to keywords in packace.json

dave @ [ dave-01 :: (SunOS) ] ~/dev/proc $ node bin/proc-cli.js psinfo | json

``` json
{
"flag": 33554432,
"nlwp": 3,
"pid": 15171,
"ppid": 19249,
"pgid": 15171,
"sid": 19249,
"uid": 2011,
"euid": 2011,
"gid": 2300,
"egid": 2300,
"addr": 0,
"size": 14536,
"rssize": 9868,
"ttydev": 1572868,
"pctcpu": 9,
"pctmem": 3,
"start": 1341693552.6120477,
"time": 0.152629749,
"ctime": 0,
"fname": "node",
"psargs": "node bin/proc-cli.js psinfo",
"wstat": 0,
"argc": 3,
"argv": 134511780,
"envp": 134511796,
"dmodel": "\u0001",
"taskid": 96333,
"projid": 3,
"nzomb": 0,
"poolid": 0,
"zoneid": 29,
"contract": 18586358
}
```