lib/third_party/tracing/extras/importer/linux_perf/power_parser.js
function(eventName, cpuNumber, pid, ts, eventBase) {
      var event = /type=(\d+) state=(\d) cpu_id=(\d+)/.exec(eventBase.details);
      if (!event)
        return false;

      var targetCpuNumber = parseInt(event[3]);
      var cpuState = parseInt(event[2]);
      this.cpuStateSlice(ts, targetCpuNumber, event[1], cpuState);
      return true;
    }
function(eventName, cpuNumber, pid, ts, eventBase) {
      var event = /type=(\d+) state=(\d) cpu_id=(\d+)/.exec(eventBase.details);
      if (!event)
        return false;

      var targetCpuNumber = parseInt(event[3]);
      var cpuState = parseInt(event[2]);
      this.cpuStateSlice(ts, targetCpuNumber, event[1], cpuState);
      return true;
    }
function ( eventName , cpuNumber , pid , ts , eventBase ) { var event = / type=(\d+) state=(\d) cpu_id=(\d+) / . exec ( eventBase . details ) ; if ( ! event ) return false ; var targetCpuNumber = parseInt ( event [ 3 ] ) ; var cpuState = parseInt ( event [ 2 ] ) ; this . cpuStateSlice ( ts , targetCpuNumber , event [ 1 ] , cpuState ) ; return true ; }
Parses power events and sets up state in the importer.
Parses power events and sets up state in the importer .