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

Unified Diff: tracing/tracing/metrics/system_health/power_metric_test.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/power_metric_test.html
diff --git a/tracing/tracing/metrics/system_health/power_metric_test.html b/tracing/tracing/metrics/system_health/power_metric_test.html
index bdc034e63a7b21601dc10b12dc9e6353db549aab..52b5714229267d9e18290669116c86ac6d17475b 100644
--- a/tracing/tracing/metrics/system_health/power_metric_test.html
+++ b/tracing/tracing/metrics/system_health/power_metric_test.html
@@ -29,8 +29,8 @@ tr.b.unittest.testSuite(function() {
var powerEntries = valueSet.valueDicts.filter(
(dict) => dict.name === 'energy_consumed_per_frame');
var powerEntry = tr.b.getOnlyElement(powerEntries);
- assert.equal(powerEntry.numeric.centralBins[0].count, 5);
- assert.closeTo(powerEntry.numeric.running.sum, 0.0172, 1e-4);
+ assert.equal(powerEntry.centralBins[0].count, 5);
+ assert.closeTo(powerEntry.running.sum, 0.0172, 1e-4);
});
test('powerMetric_oneFrame', function() {
@@ -49,8 +49,8 @@ tr.b.unittest.testSuite(function() {
var powerEntries = valueSet.valueDicts.filter(
(dict) => dict.name === 'energy_consumed_per_frame');
var powerEntry = tr.b.getOnlyElement(powerEntries);
- assert.equal(powerEntry.numeric.centralBins[0].count, 1);
- assert.closeTo(powerEntry.numeric.running.sum, 0.0011, 1e-4);
+ assert.equal(powerEntry.centralBins[0].count, 1);
+ assert.closeTo(powerEntry.running.sum, 0.0011, 1e-4);
});
test('powerMetric_noPowerSeries', function() {
« no previous file with comments | « tracing/tracing/metrics/system_health/power_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