erval.name].energy.addSample(sample.powerInW);
      }
    } else {
      const energyInJ = data.model.device.powerSeries.getEnergyConsumedInJ(
          interval.bounds.min, interval.bounds.max);
      data.histograms[interval.name].energy.addSample(energyInJ);
    }
  }

  /**
   * Returns the intervals of time between navigation event and time to
   * interactive.
   */
  function getNavigationTTIIntervals_(model) {
    const chromeHelper = model.getOrCreateHelper(
        tr.model.helpers.ChromeModelHel