Skip to content
C++ Port of Unix getrusage for getting cputime, usertime and other process information
C++ JavaScript Python Makefile
Find file
Latest commit 1880c13 Sep 17, 2015 @davglass 1.0.0
Failed to load latest commit information.
examples Fixes examples, need to npm i . locally to use Feb 7, 2012
tests Tweaking tests for Travis Jul 6, 2012
.gitignore
.npmignore
.travis.yml removed node 0.8 Sep 17, 2015
LICENSE Added License File Mar 5, 2011
Makefile fixed target from bad copy Jul 5, 2012
README.md Readme tweaks Jul 6, 2012
binding.gyp Added NAN dependency and updated code accordingly Sep 17, 2015
getrusage.cc Added NAN dependency and updated code accordingly Sep 17, 2015
index.js Use node-bindings. Feb 6, 2012
package.json

README.md

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
npm install

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.

Tests

npm install && npm test

Build Status

Build Status

Something went wrong with that request. Please try again.