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

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

Issue 1772833002: Remove SystemHealthMetric (fka RAILScore) (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix pi test Created 4 years, 9 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/system_health_metric.html
diff --git a/tracing/tracing/metrics/system_health/system_health_metric.html b/tracing/tracing/metrics/system_health/system_health_metric.html
deleted file mode 100644
index 4b91acfc97560c7f36b44b43e09bc5fcd8013717..0000000000000000000000000000000000000000
--- a/tracing/tracing/metrics/system_health/system_health_metric.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-<link rel="import" href="/tracing/base/statistics.html">
-<link rel="import" href="/tracing/metrics/system_health/utils.html">
-<link rel="import" href="/tracing/metrics/system_health/efficiency_metric.html">
-<link rel="import" href="/tracing/metrics/system_health/responsiveness_metric.html">
-
-<script>
-'use strict';
-
-tr.exportTo('tr.metrics.sh', function() {
- function SystemHealthMetric() {
- }
-
- SystemHealthMetric.forModel = function(model, opt_rangeOfInterest) {
- return tr.b.Statistics.weightedMean(
- tr.metrics.sh.filterExpectationsByRange(
- model.userModel.expectations, opt_rangeOfInterest),
- tr.metrics.sh.perceptualBlend,
- SystemHealthMetric.forExpectation);
- };
-
- SystemHealthMetric.forExpectation = function(ir) {
- function getValue(metric) {
- return metric.forExpectation(ir);
- }
- function getWeight(metric, index, score) {
- var weight = 1;
-
- // Without knowing which specific value of responsiveness or efficiency is
- // lower, responsiveness is theoretically twice as important as
- // efficiency. If the entire web were to eventually achieve relatively
- // high responsiveness scores such that responsiveness was less of a
- // concern than efficiency, then this number could be lowered. If further
- // thought suggests that responsiveness is even more than twice as
- // important as efficiency, then this number could be raised.
- if (metric === tr.metrics.sh.ResponsivenessMetric)
- weight = 2;
-
- return weight * tr.metrics.sh.perceptualBlend(ir, index, score);
- }
- return tr.b.Statistics.weightedMean(
- [tr.metrics.sh.ResponsivenessMetric,
- tr.metrics.sh.EfficiencyMetric],
- getWeight,
- getValue);
- };
-
- return {
- SystemHealthMetric: SystemHealthMetric
- };
-});
-</script>
« no previous file with comments | « tracing/tracing/metrics/all_metrics.html ('k') | tracing/tracing/metrics/system_health/system_health_metric_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698