blob: 357afde7fa51b92870239bdef0f92bfcd405e922 [file] [log] [blame]
function onLoad() {
reload();
}
function reload() {
if (!linuxPerfData)
return;
var m = new tracing.TimelineModel();
m.importEvents("[]", true, [linuxPerfData]);
var timelineViewEl = document.querySelector('.view');
cr.ui.decorate(timelineViewEl, tracing.TimelineView);
timelineViewEl.model = m;
timelineViewEl.tabIndex = 1;
timelineViewEl.timeline.focusElement = timelineViewEl;
}
document.addEventListener('DOMContentLoaded', onLoad);