| Index: tracing/tracing/metrics/system_health/power_metric.html
|
| diff --git a/tracing/tracing/metrics/system_health/power_metric.html b/tracing/tracing/metrics/system_health/power_metric.html
|
| index 4094af4df26e70d933e0f93ae845c02f48fbc4b2..844f5ac3728c486c32a844e9a29314b7dd464201 100644
|
| --- a/tracing/tracing/metrics/system_health/power_metric.html
|
| +++ b/tracing/tracing/metrics/system_health/power_metric.html
|
| @@ -22,9 +22,10 @@ tr.exportTo('tr.metrics.sh', function() {
|
| tr.v.UnitScale.Metric.NONE, tr.v.UnitScale.Metric.MILLI);
|
|
|
| function energyConsumedPerFrame(valueList, model) {
|
| - var frameEnergyConsumedInJ = tr.v.NumericBuilder.createLinear(
|
| + var frameEnergyConsumedInJ = new tr.v.Histogram(
|
| tr.v.Unit.byName.energyInJoules_smallerIsBetter,
|
| - tr.b.Range.fromExplicitRange(0, .5), 20).build();
|
| + tr.v.HistogramBinBoundaries.createLinear(0, 0.5, 20));
|
| +
|
| var frameStartTs = parseFloat(model.device.powerSeries.samples[0].start);
|
| while (model.device.powerSeries.getSamplesWithinRange(
|
| frameStartTs, frameStartTs + IDEAL_FRAME_DURATION_MS).length) {
|
|
|