Skip to content
getrusage bindings to node.js
C++ JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
examples
src
LICENSE
README.md
wscript

README.md

About

Simple binding for getrusage which lets you measure performance of your application

How to build:

node-waf configure build

Example:

var rusage = require('../bin/rusage.js'), xx = [];
console.log('usage data:', rusage.usage());
rusage.start("www");
for(var i = 0; i < 1000000; i++){
    xx.push(Math.sin(Math.sin(i) * Math.cos(i) * Math.tan(i)));
}
console.log('took cycles:', rusage.stop("www"));
Something went wrong with that request. Please try again.