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

Unified Diff: perf_insights/perf_insights/ui/reports/weather_report.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: perf_insights/perf_insights/ui/reports/weather_report.html
diff --git a/perf_insights/perf_insights/ui/reports/weather_report.html b/perf_insights/perf_insights/ui/reports/weather_report.html
deleted file mode 100644
index 11b40a76d277bea7e8d35d07cc4ce31667e8e9c9..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/ui/reports/weather_report.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-0;95;c<!--
-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="/perf_insights/ui/reports/coverage_report.html">
-<link rel="import" href="/perf_insights/ui/reports/pi_report.html">
-<link rel="import" href="/perf_insights/ui/reports/rail_score_report.html">
-<link rel="import" href="/perf_insights/ui/reports/slice_cost_report.html">
-<link rel="import" href="/tracing/base/iteration_helpers.html">
-<link rel="import" href="/tracing/ui/base/dom_helpers.html">
-<link rel="import" href="/tracing/ui/base/grouping_table.html">
-<link rel="import" href="/tracing/ui/base/overlay.html">
-<link rel="import" href="/tracing/ui/base/tab_view.html">
-
-<polymer-element name="pi-ui-r-weather-report"
- extends="pi-ui-r-pi-report"
- map-function-href="/perf_insights/mappers/weather_report_map_function.html"
- map-function-name="weatherReportMapFunction">
- <template>
- <style>
- :host {
- display: flex;
- flex-direction: column;
- }
-
- tr-ui-a-tab-view {
- flex: 1 1 auto;
- min-height: 0;
- }
- </style>
- <tr-ui-a-tab-view>
- <div tab-label="Slice costs" selected>
- <pi-ui-r-slice-cost-report class="sub-report">
- </pi-ui-r-slice-cost-report>
- </div>
-
- <div tab-label="RAIL">
- <pi-ui-r-rail-score-report class="sub-report">
- </pi-ui-r-rail-score-report>
- </div>
-
- <div tab-label="Coverage">
- <pi-ui-wr-coverage-report class="sub-report">
- </pi-ui-wr-coverage-report>
- </div>
- </tr-ui-a-tab-view>
- </template>
- <script>
- 'use strict';
-
- Polymer({
- created: function() {
- this.mapResults_ = undefined;
- },
-
- get mapResults() {
- return this.mapResults_;
- },
-
- set mapResults(mapResults) {
- this.mapResults_ = mapResults;
- this.updateContents_();
- },
-
- updateContents_: function() {
- var results = this.mapResults_;
- if (!results)
- results = [];
-
- var tabView = this.shadowRoot.querySelector('tr-ui-a-tab-view');
- tabView.tabStripHeadingText = results.length +
- ' traces: ';
-
- var reports = tr.b.asArray(
- this.shadowRoot.querySelectorAll('.sub-report'));
- reports.forEach(function(report) {
- report.mapResults = results;
- });
- }
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698