lib/third_party/tracing/extras/importer/linux_perf/ftrace_importer.js
function(isSecondaryImport) {
      this.parsers_ = this.createParsers_();
      this.registerDefaultHandlers_();
      this.parseLines();
      this.importClockSyncRecords();
      var timeShift = this.computeTimeTransform();
      if (timeShift === undefined) {
        this.model_.importWarning({
          type: 'clock_sync',
          message: 'Cannot import kernel trace without a clock sync.'
        });
        return;
      }
      this.shiftNewlyAddedClockSyncRecords(timeShift);
      this.importCpuData(timeShift);
      this.buildMapFromLinuxPidsToThreads();
      this.buildPerThreadCpuSlicesFromCpuState();
      this.computeCpuTimestampsForSlicesAsNeeded();
    }
function(isSecondaryImport) {
      this.parsers_ = this.createParsers_();
      this.registerDefaultHandlers_();
      this.parseLines();
      this.importClockSyncRecords();
      var timeShift = this.computeTimeTransform();
      if (timeShift === undefined) {
        this.model_.importWarning({
          type: 'clock_sync',
          message: 'Cannot import kernel trace without a clock sync.'
        });
        return;
      }
      this.shiftNewlyAddedClockSyncRecords(timeShift);
      this.importCpuData(timeShift);
      this.buildMapFromLinuxPidsToThreads();
      this.buildPerThreadCpuSlicesFromCpuState();
      this.computeCpuTimestampsForSlicesAsNeeded();
    }
function ( isSecondaryImport ) { this . parsers_ = this . createParsers_ ( ) ; this . registerDefaultHandlers_ ( ) ; this . parseLines ( ) ; this . importClockSyncRecords ( ) ; var timeShift = this . computeTimeTransform ( ) ; if ( timeShift === undefined ) { this . model_ . importWarning ( { type : 'clock_sync' , message : 'Cannot import kernel trace without a clock sync.' } ) ; return ; } this . shiftNewlyAddedClockSyncRecords ( timeShift ) ; this . importCpuData ( timeShift ) ; this . buildMapFromLinuxPidsToThreads ( ) ; this . buildPerThreadCpuSlicesFromCpuState ( ) ; this . computeCpuTimestampsForSlicesAsNeeded ( ) ; }
Imports the data in this.events_ into model_.
Imports the data in this . events_ into model_ .