devtools-timeline-model ![Build Status](https://travis-ci.org/paulirish/devtools-timeline-model.svg?branch=master)
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
![NPM devtools-timeline-model package](https://img.shields.io/npm/v/devtools-timeline-model.svg)
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')
![image](https://cloud.githubusercontent.com/assets/39191/13832447/7b4dffde-eb99-11e5-8f7e-f1afcf999fd6.png)
These objects are huge. You'll want to explore them in a UI like devtool.
![image](https://cloud.githubusercontent.com/assets/39191/13832411/390270ec-eb99-11e5-8dc9-c647c1b62c9d.png)
License
Apache © Paul Irish