0.4.0 • Published 11 years ago
traceviewify v0.4.0
traceviewify 
Converts .cpuprofile format to trace viewer JSON object
format to allow analysing the data in chrome://tracing.
var traceviewify = require('traceviewify');
var cpuprofile = require('./fixtures/fibonacci.cpuprofile');
var traceviewObjectFormat = traceviewify(cpuprofile); Screenshots

The screenshot above shows chrome://tracing timeline and sunburst of traceviewified data

The screenshot above shows DevTools with .cpuprofile from which the traceview was generated
Usage
cat some.cpuprofile | traceviewify > trace.jsonThen load it into chrome://tracing.
Installation
npm install traceviewifyDTrace
A simple DTrace script was also added which generates trace viewer events. The resulting JSON can be directly imported into chrome://tracing.
API
generated with docme
License
MIT
