paulirish / automated-chrome-profiling

Node.js recipes for automating javascript profiling in Chrome
https://github.com/paulirish/automated-chrome-profiling#readme
863 stars 72 forks source link

Need help in understanding mdn-fling.json #18

Open chinni20 opened 5 years ago

chinni20 commented 5 years ago

Hi, Really appreciate your help doing POC using automated-chrome-profiling and stuck here!

1)Could you please explain how did you generate mdn-fling.json ?

log-trace-metrics.js file has const filename = 'demo/mdn-fling.json' 2) And also where do we need to save the below one and how it works and which .js file we need to run i.e npm .js _Timeline model

const filename = 'demo/mdn-fling.json'

var fs = require('fs') var traceToTimelineModel = require('./lib/timeline-model.js')

var events = fs.readFileSync(filename, 'utf8') var model = traceToTimelineModel(events)

model.timelineModel // full event tree model.irModel // interactions, input, animations model.frameModel // frames, durations_

image