node bindings for the v8 profiler
C++ JavaScript C Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 17 commits ahead, 121 commits behind node-inspector:master.
Latest commit 9e28062 Aug 9, 2013 @AndrewMartens AndrewMartens Merge pull request #1 from af/patch-1
Fix crashing bug from typo
Permalink
Failed to load latest commit information.
.gitignore Remove dangling symlink. Apr 28, 2012
LICENSE Added BSD License May 12, 2012
Makefile Adds Makefile Apr 1, 2012
binding.gyp Remove graph_* components that don't compile on Windows Jul 17, 2013
cpu_profiler.cc Cleans up incorrect indentation Apr 5, 2012
cpu_profiler.h Cleans up incorrect indentation Apr 5, 2012
heap_profiler.cc Fix compiler warnings. Apr 28, 2012
heap_profiler.h Cleans up incorrect indentation Apr 5, 2012
index.js
package.json Updated readme and bumped package version Aug 9, 2013
profile.cc
profile.h Merge remote-tracking branch 'c4milo/master' into 3.6.2 Jun 2, 2012
profile_node.cc added cpu profiler Dec 1, 2010
profile_node.h No need for v8.h here since v8-profiler.h already includes it. Apr 3, 2012
profiler.cc Merge remote-tracking branch 'c4milo/master' into 3.6.2 Jun 2, 2012
readme.md Updated readme and bumped package version Aug 9, 2013
snapshot.cc Remove graph_* components that don't compile on Windows Jul 17, 2013
snapshot.h Remove old stuff Apr 24, 2013
wscript No need to maintain the list of sources manually Mar 22, 2012

readme.md

v8-profiler provides node bindings for the v8 profiler and integration with node-inspector

Installation

npm install v8-profiler

We now include node v0.10 binaries for a number of platforms. During the install, node-gyp will attempt to build the module for your platform. If it fails (see builderror.log), the module will still be installed, but will attempt to load up an appropriate pre-built binary for your platform if there is one available.

Usage

var profiler = require('v8-profiler');

API

var snapshot = profiler.takeSnapshot([name])      //takes a heap snapshot

profiler.startProfiling([name])                   //begin cpu profiling
var cpuProfile = profiler.stopProfiling([name])   //finish cpu profiling

node-inspector

Cpu profiles can be viewed and heap snapshots may be taken and viewed from the profiles panel.