This repository was archived by the owner on Sep 7, 2022. It is now read-only.
File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 65
65
< div class ="cell name "> {{item.tagName}}</ div >
66
66
< div class ="cell "> {{item.count}}</ div >
67
67
< stats-item item ="[[item]] " metric ="totalTime " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] " class ="total "> </ stats-item >
68
- < stats-item item ="[[item]] " metric ="register " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
68
+ < template is ="dom-if ">
69
+ < stats-item item ="[[item]] " metric ="register " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
70
+ </ template >
69
71
< stats-item item ="[[item]] " metric ="created " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
70
72
< stats-item item ="[[item]] " metric ="attached " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
71
73
< stats-item item ="[[item]] " metric ="detached " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
Original file line number Diff line number Diff line change @@ -63,7 +63,12 @@ <h1>Custom Element Profile</h1>
63
63
</ paper-button >
64
64
</ div >
65
65
< template is ="dom-if " if ="{{stats}} ">
66
- < stats-table stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-table >
66
+ < stats-table
67
+ stats ="[[stats]] "
68
+ all-tags-stats ="[[allTagsStats]] "
69
+ show-register-column ="[[showRegisterColumn]] "
70
+ >
71
+ </ stats-table >
67
72
</ template >
68
73
</ paper-material >
69
74
</ template >
@@ -82,6 +87,8 @@ <h1>Custom Element Profile</h1>
82
87
allTagsStats : {
83
88
type : Object ,
84
89
} ,
90
+
91
+ showRegisterColumn : Boolean ,
85
92
} ,
86
93
87
94
attached ( ) {
@@ -129,11 +136,15 @@ <h1>Custom Element Profile</h1>
129
136
displayData . push ( tagStats ) ;
130
137
this . maxCallbackTime = Math . max (
131
138
this . maxCallbackTime ,
132
- tagStats . register ,
133
139
tagStats . created ,
134
140
tagStats . attached ,
135
141
tagStats . detached ,
136
142
tagStats . attributeChanged ) ;
143
+ if ( showRegisterColumn ) {
144
+ this . maxCallbackTime = Math . max (
145
+ this . maxCallbackTime ,
146
+ tagStats . register ) ;
147
+ }
137
148
allTagsStats . count += tagStats . count ;
138
149
allTagsStats . totalTime += tagStats . totalTime ;
139
150
allTagsStats . register += tagStats . register ;
@@ -176,6 +187,6 @@ <h1>Custom Element Profile</h1>
176
187
} ) ( ) ;
177
188
</ script >
178
189
</ dom-module >
179
- < polymer-panel > </ polymer-panel >
190
+ < polymer-panel show-register-column =" false " > </ polymer-panel >
180
191
</ body >
181
192
</ html >
You can’t perform that action at this time.
0 commit comments