lib/third_party/tracing/extras/importer/linux_perf/regulator_parser.js
function(ctrName, valueName) {
      var ctr = this.model_.kernel
        .getOrCreateCounter(null, 'vreg ' + ctrName + ' ' + valueName);
      // Initialize the counter's series fields if needed.
      if (ctr.series[0] === undefined) {
        ctr.addSeries(new tr.model.CounterSeries(valueName,
        ColorScheme.getColorIdForGeneralPurposeString(
        ctrName + '.' + valueName)));
      }
      return ctr;
    }
function(ctrName, valueName) {
      var ctr = this.model_.kernel
        .getOrCreateCounter(null, 'vreg ' + ctrName + ' ' + valueName);
      // Initialize the counter's series fields if needed.
      if (ctr.series[0] === undefined) {
        ctr.addSeries(new tr.model.CounterSeries(valueName,
        ColorScheme.getColorIdForGeneralPurposeString(
        ctrName + '.' + valueName)));
      }
      return ctr;
    }
function ( ctrName , valueName ) { var ctr = this . model_ . kernel . getOrCreateCounter ( null , 'vreg ' + ctrName + ' ' + valueName ) ; // Initialize the counter's series fields if needed. if ( ctr . series [ 0 ] === undefined ) { ctr . addSeries ( new tr . model . CounterSeries ( valueName , ColorScheme . getColorIdForGeneralPurposeString ( ctrName + '.' + valueName ) ) ) ; } return ctr ; }
Get or create a counter with one series.
Get or create a counter with one series .