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

Unified Diff: tracing/tracing/value/ui/merged_telemetry_info_span.html

Issue 2982283002: Delete TelemetryInfo, MergedTelemetryInfo diagnostics. (Closed)
Patch Set: rebase Created 3 years, 4 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/value/ui/diagnostic_span.html ('k') | tracing/tracing/value/ui/telemetry_info_span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/merged_telemetry_info_span.html
diff --git a/tracing/tracing/value/ui/merged_telemetry_info_span.html b/tracing/tracing/value/ui/merged_telemetry_info_span.html
deleted file mode 100644
index 4776d43ff2607ee6ee36f2cd9f4e08c059feee85..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/ui/merged_telemetry_info_span.html
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 2017 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/ui/base/table.html">
-
-<dom-module id="tr-v-ui-merged-telemetry-info-span">
- <template>
- <style>
- #hide, #table {
- display: none;
- }
- </style>
- <button id="show" on-click="onShow_">Show</button>
- <button id="hide" on-click="onHide_">Hide</button>
- <tr-ui-b-table id="table"></tr-ui-b-table>
- </template>
-</dom-module>
-<script>
-'use strict';
-Polymer({
- is: 'tr-v-ui-merged-telemetry-info-span',
-
- ready() {
- this.diagnostic_ = undefined;
- this.$.table.showHeader = false;
- this.$.table.tableColumns = [
- {value: row => row[0]},
- {value: row => row[1]},
- ];
- },
-
- onShow_() {
- this.$.show.style.display = 'none';
- this.$.hide.style.display = 'block';
- this.$.table.style.display = 'table';
- },
-
- onHide_() {
- this.$.show.style.display = 'block';
- this.$.hide.style.display = 'none';
- this.$.table.style.display = 'none';
- },
-
- get diagnostic() {
- return this.diagnostic_;
- },
-
- set diagnostic(d) {
- this.diagnostic_ = d;
- this.updateContents_();
- },
-
- updateContents_() {
- if (this.diagnostic === undefined) {
- this.$.table.tableRows = [];
- return;
- }
-
- const rows = [];
-
- if (this.diagnostic.benchmarkNames.size) {
- rows.push([
- 'benchmark names',
- Array.from(this.diagnostic.benchmarkNames).join(', ')
- ]);
- }
- if (this.diagnostic.benchmarkStarts.length) {
- rows.push([
- 'benchmark starts',
- this.diagnostic.benchmarkStartStrings.join(', ')
- ]);
- }
- if (this.diagnostic.storyDisplayNames.size) {
- rows.push([
- 'stories',
- Array.from(this.diagnostic.storyDisplayNames).join(', ')
- ]);
- }
- if (this.diagnostic.storysetRepeatCounters.size) {
- rows.push([
- 'storyset repeats',
- Array.from(this.diagnostic.storysetRepeatCounters).join(', ')
- ]);
- }
- if (this.diagnostic.labels.size) {
- rows.push(['label', Array.from(this.diagnostic.labels).join(', ')]);
- }
- if (this.diagnostic.storyGroupingKeys.size) {
- const gov = document.createElement('tr-ui-a-generic-object-view');
- const obj = {};
- for (const [key, value] of this.diagnostic.storyGroupingKeys) {
- obj[key] = Array.from(value);
- }
- gov.object = obj;
- rows.push(['grouping keys', gov]);
- }
- this.$.table.tableRows = rows;
- }
-});
-</script>
« no previous file with comments | « tracing/tracing/value/ui/diagnostic_span.html ('k') | tracing/tracing/value/ui/telemetry_info_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698