lib/third_party/tracing/extras/importer/linux_perf/memreclaim_parser.js
function(eventName, cpuNumber, pid, ts, eventBase) {
      var event = kswapdWakeRE.exec(eventBase.details);
      if (!event)
        return false;

      var tgid = parseInt(eventBase.tgid);

      var nid = parseInt(event[1]);
      var order = parseInt(event[2]);

      var kthread = this.importer.getOrCreateKernelThread(
          eventBase.threadName, tgid, pid);

      if (kthread.openSliceTS) {
        if (order > kthread.order) {
          kthread.order = order;
        }
      } else {
        kthread.openSliceTS = ts;
        kthread.order = order;
      }
      return true;
    }
function(eventName, cpuNumber, pid, ts, eventBase) {
      var event = kswapdWakeRE.exec(eventBase.details);
      if (!event)
        return false;

      var tgid = parseInt(eventBase.tgid);

      var nid = parseInt(event[1]);
      var order = parseInt(event[2]);

      var kthread = this.importer.getOrCreateKernelThread(
          eventBase.threadName, tgid, pid);

      if (kthread.openSliceTS) {
        if (order > kthread.order) {
          kthread.order = order;
        }
      } else {
        kthread.openSliceTS = ts;
        kthread.order = order;
      }
      return true;
    }
function ( eventName , cpuNumber , pid , ts , eventBase ) { var event = kswapdWakeRE . exec ( eventBase . details ) ; if ( ! event ) return false ; var tgid = parseInt ( eventBase . tgid ) ; var nid = parseInt ( event [ 1 ] ) ; var order = parseInt ( event [ 2 ] ) ; var kthread = this . importer . getOrCreateKernelThread ( eventBase . threadName , tgid , pid ) ; if ( kthread . openSliceTS ) { if ( order > kthread . order ) { kthread . order = order ; } } else { kthread . openSliceTS = ts ; kthread . order = order ; } return true ; }
Parses memreclaim events and sets up state in the importer.
Parses memreclaim events and sets up state in the importer .