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

Unified Diff: tracing/tracing/value/diagnostics/add_related_names.html

Issue 3009553002: Refactor Histogram relationship diagnostics. (Closed)
Patch Set: Created 3 years, 3 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/value/diagnostics/add_related_names.html
diff --git a/tracing/tracing/value/diagnostics/add_related_names.html b/tracing/tracing/value/diagnostics/add_related_names.html
deleted file mode 100644
index a8151222466af3d9c73107fdb1814e018a4b77ca..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/diagnostics/add_related_names.html
+++ /dev/null
@@ -1,41 +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/value/diagnostics/reserved_names.html">
-
-<script>
-'use strict';
-
-tr.exportTo('tr.v.d', function() {
- /**
- * Add related names GenericSet diagnostic.
- *
- * @param {!tr.v.HistogramSet} histograms
- */
- function addRelatedNames(histograms) {
- for (const hist of histograms) {
- const relatedNames = new Set();
- for (const [name, diagnostic] of hist.diagnostics) {
- if (diagnostic instanceof tr.v.d.RelatedHistogramMap) {
- for (const [relationshipName, relatedHist] of diagnostic) {
- relatedNames.add(relatedHist.name);
- }
- }
- }
- if (relatedNames.size) {
- hist.diagnostics.set(
- tr.v.d.RESERVED_NAMES.RELATED_NAMES,
- new tr.v.d.GenericSet(relatedNames));
- }
- }
- }
-
- return {
- addRelatedNames,
- };
-});
-</script>
« no previous file with comments | « tracing/tracing/ui/side_panel/metrics_side_panel.html ('k') | tracing/tracing/value/diagnostics/add_related_names_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698