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

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

Issue 2334233003: Merge NumericValue into Histogram (Closed)
Patch Set: fix rail_power_metric Created 4 years, 3 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/hazard_metric.html
diff --git a/tracing/tracing/metrics/system_health/hazard_metric.html b/tracing/tracing/metrics/system_health/hazard_metric.html
index 3376c34ed26b0f48bf84fb6c17c470ab8d8570b3..e8b6eeb2ba81ccfa693615e7ebdd9e0ab05bd405 100644
--- a/tracing/tracing/metrics/system_health/hazard_metric.html
+++ b/tracing/tracing/metrics/system_health/hazard_metric.html
@@ -8,7 +8,6 @@ found in the LICENSE file.
<link rel="import" href="/tracing/metrics/metric_registry.html">
<link rel="import" href="/tracing/metrics/system_health/long_tasks_metric.html">
<link rel="import" href="/tracing/value/numeric.html">
-<link rel="import" href="/tracing/value/value.html">
<script>
'use strict';
@@ -124,10 +123,10 @@ tr.exportTo('tr.metrics.sh', function() {
if (overallHazard === undefined)
overallHazard = 0;
- var hist = new tr.v.Histogram(
+ var hist = new tr.v.Histogram('hazard',
tr.b.Unit.byName.normalizedPercentage_smallerIsBetter);
hist.addSample(overallHazard);
- values.addValue(new tr.v.NumericValue('hazard', hist));
+ values.addHistogram(hist);
}
tr.metrics.MetricRegistry.register(hazardMetric);

Powered by Google App Engine
This is Rietveld 408576698