lib/third_party/tracing/extras/importer/linux_perf/ftrace_importer.js
function() {
      this.forEachLine(function(text, eventBase, cpuNumber, pid, ts) {
        var eventName = eventBase.eventName;
        if (eventName !== 'tracing_mark_write' && eventName !== '0')
          return;
        if (traceEventClockSyncRE.exec(eventBase.details))
          this.traceClockSyncEvent(eventName, cpuNumber, pid, ts, eventBase);
        if (realTimeClockSyncRE.exec(eventBase.details)) {
          // This entry maps realtime to clock_monotonic; store in the model
          // so that importers parsing files with realtime timestamps can
          // map this back to monotonic.
          var match = realTimeClockSyncRE.exec(eventBase.details);
          this.model_.realtime_to_monotonic_offset_ms = ts - match[1];
        }
        if (genericClockSyncRE.exec(eventBase.details))
          this.traceClockSyncEvent(eventName, cpuNumber, pid, ts, eventBase);
      }.bind(this));
    }
function() {
      this.forEachLine(function(text, eventBase, cpuNumber, pid, ts) {
        var eventName = eventBase.eventName;
        if (eventName !== 'tracing_mark_write' && eventName !== '0')
          return;
        if (traceEventClockSyncRE.exec(eventBase.details))
          this.traceClockSyncEvent(eventName, cpuNumber, pid, ts, eventBase);
        if (realTimeClockSyncRE.exec(eventBase.details)) {
          // This entry maps realtime to clock_monotonic; store in the model
          // so that importers parsing files with realtime timestamps can
          // map this back to monotonic.
          var match = realTimeClockSyncRE.exec(eventBase.details);
          this.model_.realtime_to_monotonic_offset_ms = ts - match[1];
        }
        if (genericClockSyncRE.exec(eventBase.details))
          this.traceClockSyncEvent(eventName, cpuNumber, pid, ts, eventBase);
      }.bind(this));
    }
function ( ) { this . forEachLine ( function ( text , eventBase , cpuNumber , pid , ts ) { var eventName = eventBase . eventName ; if ( eventName !== 'tracing_mark_write' && eventName !== '0' ) return ; if ( traceEventClockSyncRE . exec ( eventBase . details ) ) this . traceClockSyncEvent ( eventName , cpuNumber , pid , ts , eventBase ) ; if ( realTimeClockSyncRE . exec ( eventBase . details ) ) { // This entry maps realtime to clock_monotonic; store in the model // so that importers parsing files with realtime timestamps can // map this back to monotonic. var match = realTimeClockSyncRE . exec ( eventBase . details ) ; this . model_ . realtime_to_monotonic_offset_ms = ts - match [ 1 ] ; } if ( genericClockSyncRE . exec ( eventBase . details ) ) this . traceClockSyncEvent ( eventName , cpuNumber , pid , ts , eventBase ) ; } . bind ( this ) ) ; }
Populates model clockSyncRecords with found clock sync markers.
Populates model clockSyncRecords with found clock sync markers .