| 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>
|
|
|