lib/third_party/tracing/extras/importer/linux_perf/power_parser.js
function PowerParser(importer) {
    Parser.call(this, importer);

    // NB: old-style power events, deprecated
    importer.registerEventHandler('power_start',
        PowerParser.prototype.powerStartEvent.bind(this));
    importer.registerEventHandler('power_frequency',
        PowerParser.prototype.powerFrequencyEvent.bind(this));

    importer.registerEventHandler('cpu_frequency',
        PowerParser.prototype.cpuFrequencyEvent.bind(this));
    importer.registerEventHandler('cpu_idle',
        PowerParser.prototype.cpuIdleEvent.bind(this));
  }
function PowerParser(importer) {
    Parser.call(this, importer);

    // NB: old-style power events, deprecated
    importer.registerEventHandler('power_start',
        PowerParser.prototype.powerStartEvent.bind(this));
    importer.registerEventHandler('power_frequency',
        PowerParser.prototype.powerFrequencyEvent.bind(this));

    importer.registerEventHandler('cpu_frequency',
        PowerParser.prototype.cpuFrequencyEvent.bind(this));
    importer.registerEventHandler('cpu_idle',
        PowerParser.prototype.cpuIdleEvent.bind(this));
  }
function PowerParser ( importer ) { Parser . call ( this , importer ) ; // NB: old-style power events, deprecated importer . registerEventHandler ( 'power_start' , PowerParser . prototype . powerStartEvent . bind ( this ) ) ; importer . registerEventHandler ( 'power_frequency' , PowerParser . prototype . powerFrequencyEvent . bind ( this ) ) ; importer . registerEventHandler ( 'cpu_frequency' , PowerParser . prototype . cpuFrequencyEvent . bind ( this ) ) ; importer . registerEventHandler ( 'cpu_idle' , PowerParser . prototype . cpuIdleEvent . bind ( this ) ) ; }
Parses linux power trace events.
@constructor
Parses linux power trace events .