Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: tracing/tracing/metrics/system_health/power_metric.html

Issue 2293533002: Refactor NumericBuilder to HistogramBinBoundaries. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « tracing/tracing/metrics/system_health/memory_metric.html ('k') | tracing/tracing/metrics/system_health/rail_power_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698