RainingChain
RainingChain

Reputation: 7782

Nodejs Profiling: What to do with v8.log file

Only thing I have installed is Nodejs. I'm using Windows 8 x64.

I run my program via node --prof app.js. It generates a v8.log file.

Now, what do I do with the v8.log file?

Upvotes: 22

Views: 19235

Answers (3)

quibusus
quibusus

Reputation: 426

Starting with v5.2.0, Node.JS ships with a built-in tick processor:

node --prof-process

See the release notes for more information.

Upvotes: 28

rjz
rjz

Reputation: 16510

Chrome's built-in Trace Event Profiling Tool (accessible in Chrome or Chromium at chrome://tracing) can build more-useful visualizations around v8.log output.

Note that dumps from node >= 0.11.x may be more useful to you than those on the current stable release (0.10.35).

Upvotes: 6

kierans
kierans

Reputation: 2223

You need to process the v8.log. The v8 log contains sample points, and want to collect that data into something readable/usable. Check out node-tick-processor and run that over your v8 log.

Upvotes: 1

Related Questions