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

Side by Side Diff: tracing/tracing/value/diagnostics/tag_map.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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2017 The Chromium Authors. All rights reserved. 3 Copyright 2017 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/utils.html"> 8 <link rel="import" href="/tracing/base/utils.html">
9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html">
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 addDiagnostic(otherDiagnostic) { 62 addDiagnostic(otherDiagnostic) {
63 for (const [name, storyDisplayNames] of 63 for (const [name, storyDisplayNames] of
64 otherDiagnostic.tagsToStoryNames) { 64 otherDiagnostic.tagsToStoryNames) {
65 if (!this.tagsToStoryNames.has(name)) { 65 if (!this.tagsToStoryNames.has(name)) {
66 this.tagsToStoryNames.set(name, new Set()); 66 this.tagsToStoryNames.set(name, new Set());
67 } 67 }
68 for (const t of storyDisplayNames) { 68 for (const t of storyDisplayNames) {
69 this.tagsToStoryNames.get(name).add(t); 69 this.tagsToStoryNames.get(name).add(t);
70 } 70 }
71 } 71 }
72
73 return this;
74 } 72 }
75 73
76 asDictInto_(d) { 74 asDictInto_(d) {
77 d.tagsToStoryNames = {}; 75 d.tagsToStoryNames = {};
78 for (const [name, value] of this.tagsToStoryNames) { 76 for (const [name, value] of this.tagsToStoryNames) {
79 d.tagsToStoryNames[name] = Array.from(value); 77 d.tagsToStoryNames[name] = Array.from(value);
80 } 78 }
81 } 79 }
82 80
83 /** 81 /**
(...skipping 18 matching lines...) Expand all
102 100
103 tr.v.d.Diagnostic.register(TagMap, { 101 tr.v.d.Diagnostic.register(TagMap, {
104 elementName: 'tr-v-ui-tag-map-span' 102 elementName: 'tr-v-ui-tag-map-span'
105 }); 103 });
106 104
107 return { 105 return {
108 TagMap, 106 TagMap,
109 }; 107 };
110 }); 108 });
111 </script> 109 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698