function onLoad() { reload(); } function reload() { if (!linuxPerfData) return; var m = new tracing.Model(); m.importEvents("[]", true, [linuxPerfData]); var timelineViewEl = document.querySelector('.view'); tracing.ui.decorate(timelineViewEl, tracing.TimelineView); timelineViewEl.model = m; timelineViewEl.tabIndex = 1; timelineViewEl.timeline.focusElement = timelineViewEl; } document.addEventListener('DOMContentLoaded', onLoad);