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

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

Issue 2441883002: Make it so power metrics only output one sample per trace. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « tracing/tracing/metrics/system_health/power_metric.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6dea9534599cb37b42a479d1b6a60de1e8c40151..7d6e323213c23c03a8c2ec32ec00a38212d221cd 100644
--- a/tracing/tracing/metrics/system_health/power_metric_test.html
+++ b/tracing/tracing/metrics/system_health/power_metric_test.html
@@ -252,17 +252,17 @@ tr.b.unittest.testSuite(function() {
model.userModel.expectations.push(new tr.model.um.IdleExpectation(
model, 200, 300));
model.userModel.expectations.push(new tr.model.um.ResponseExpectation(
- model, tr.importer.INITIATOR_TYPE.SCROLL, 500, 200));
+ model, tr.importer.INITIATOR_TYPE.SCROLL, 500, 400));
model.userModel.expectations.push(new tr.model.um.IdleExpectation(
- model, 700, 300));
+ model, 900, 100));
});
var valueSet = new tr.v.HistogramSet();
tr.metrics.sh.powerMetric(valueSet, model);
assert.closeTo(getMetricValueSum(valueSet,
- 'scroll_response:energy'), 140, 0.5);
+ 'scroll_response:energy'), 300, 0.6);
assert.closeTo(getMetricValueAvg(valueSet,
- 'idle:power'), 600, 0.5);
+ 'idle:power'), 500, 0.6);
});
test('powerMetric_loading_oneInterval_samplesBeyondChrome', function() {
« no previous file with comments | « tracing/tracing/metrics/system_health/power_metric.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698