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

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

Issue 2283213002: Rename Histogram.add() to addSample(). (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/rail_power_metric.html
diff --git a/tracing/tracing/metrics/system_health/rail_power_metric.html b/tracing/tracing/metrics/system_health/rail_power_metric.html
index 6a9159fd654cf2315cad5faf0e3556529936ae92..5ec1d7ec3c5fa24d46fffb82358fbbcba353a305 100644
--- a/tracing/tracing/metrics/system_health/rail_power_metric.html
+++ b/tracing/tracing/metrics/system_health/rail_power_metric.html
@@ -44,19 +44,19 @@ tr.exportTo('tr.metrics.sh', function() {
var durationHist = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter);
- durationHist.add(durationInMs);
+ durationHist.addSample(durationInMs);
values.addValue(new tr.v.NumericValue('total_time_' + title, durationHist,
{description: 'Time spent in RAIL stage ' + title}));
var energyHist = new tr.v.Histogram(
tr.v.Unit.byName.energyInJoules_smallerIsBetter);
- energyHist.add(energyInJ);
+ energyHist.addSample(energyInJ);
values.addValue(new tr.v.NumericValue('total_energy_' + title, energyHist,
{description: 'Energy consumed in RAIL stage ' + title}));
var powerHist = new tr.v.Histogram(
tr.v.Unit.byName.powerInWatts_smallerIsBetter);
- powerHist.add(powerInW);
+ powerHist.addSample(powerInW);
values.addValue(new tr.v.NumericValue('energy_consumption_rate_' + title,
powerHist, {description: 'Energy consumption rate for RAIL stage ' +
title}));

Powered by Google App Engine
This is Rietveld 408576698