Home | History | Annotate | Download | only in chromium-trace
      1 function onLoad() {
      2   reload();
      3 }
      4 
      5 function reload() {
      6   if (!linuxPerfData)
      7     return;
      8 
      9   var m = new tracing.Model();
     10   m.importEvents("[]", true, [linuxPerfData]);
     11 
     12   var timelineViewEl = document.querySelector('.view');
     13   tracing.ui.decorate(timelineViewEl, tracing.TimelineView);
     14   timelineViewEl.model = m;
     15   timelineViewEl.tabIndex = 1;
     16   timelineViewEl.timeline.focusElement = timelineViewEl;
     17 }
     18 
     19 document.addEventListener('DOMContentLoaded', onLoad);
     20