devtools-timeline-model
Parse raw trace data into the Chrome DevTools' structured profiling data models
If you use something like big-rig or automated-chrome-profiling you may end up with raw trace data. It's pretty raw. This module will parse that stuff into something a bit more consumable, and should help you with higher level analysis.
Install
$ npm install --save devtools-timeline-model
Usage
var filename = 'demo/mdn-fling.json'
var events = require('fs').readFileSync(filename, 'utf8')
var DevtoolsTimelineModel = require('devtools-timeline-model');
var model = new DevtoolsTimelineModel(events)
model.tracingModel()
model.timelineModel()
model.interactionModel()
model.frameModel()
model.filmStripModel()
model.topDown()
model.bottomUp()
model.bottomUpGroupBy('URL')
These objects are huge. You'll want to explore them in a UI like devtool.
Dev
npm i
brew install entr
gls index.js lib/*.js | entr node example.js
License
Apache © Paul Irish