kuebk / node-rusage

getrusage bindings to node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##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"));

About

getrusage bindings to node.js

License:MIT License


Languages

Language:C++ 79.3%Language:JavaScript 20.7%