TooTallNate / node-getrusage

C++ Port of Unix getrusage for getting cputime, usertime and other process information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getrusage for Node

Simple wrapper around the unix method getrusage for reporting CPU Time and other process information

Installation

npm install getrusage

Or:

git clone git://github.com/davglass/node-getrusage.git
cd node-getrusage
make

Usage

var proc = require('getrusage');
console.log(proc.usage());          # Run "man getrusage" for fields.
console.log(proc.getcputime());     # User time + system time.
console.log(proc.getsystemtime());  # System time.

About

C++ Port of Unix getrusage for getting cputime, usertime and other process information

License:Other


Languages

Language:C++ 74.6%Language:JavaScript 25.4%