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_
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_