0.6.2 • Published 9 years ago

nodegrind v0.6.2

Weekly downloads
58
License
GPLv2
Repository
github
Last release
9 years ago

nodegrind

Profile nodejs applications with kcachegrind, either using the nodegrind wrapper or the more targeted profiling module.

Installation

Node 0.10

npm install nodegrind@0.5.0

Node 4.2

npm install nodegrind

Full-program profiling:

node nodegrind [-o callgrind.out.<pid>] <main.js> <params>
kcachegrind nodegrind.callgrind

Targeted profiling by using nodegrind as a module

var nodegrind = require('nodegrind'),
	fs = require('fs');

nodegrind.startCPU('someProfile');

// Run the code you are interested in

// Get the callgrind profile as a string
var prof = nodegrind.stopCPU('someProfile');
fs.writeFileSync('callgrind.out.someProfile', prof);
// open kcachegrind with 'kcachegrind callgrind.out.someProfile'

// Alternatively, get a Chrome *.cpuprofile that you can load into the Chrome
// profiler (right-click on 'Profiles' in left pane in the 'Profiles' tab)
var prof = nodegrind.stopCPU('someProfile', 'cpuprofile');
fs.writeFileSync('someProfile.cpuprofile', prof);

KCachegrind screenshot

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago