Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C++ Port of Unix getrusage for getting cputime, usertime and other process information
branch: master
Failed to load latest commit information.
examples Fixes examples, need to npm i . locally to use
tests
.gitignore added binding.gyp file
.npmignore Initial Import
.travis.yml Updated travis node versions
LICENSE Added License File
Makefile
README.md
binding.gyp
getrusage.cc Fixes #10 - Updated module to work with node 0.10.x
index.js Use node-bindings.
package.json Version Bump

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.