This repository was archived by the owner on Sep 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 6565 < div class ="cell name "> {{item.tagName}}</ div >
6666 < div class ="cell "> {{item.count}}</ div >
6767 < 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 >
6971 < stats-item item ="[[item]] " metric ="created " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
7072 < stats-item item ="[[item]] " metric ="attached " stats ="[[stats]] " all-tags-stats ="[[allTagsStats]] "> </ stats-item >
7173 < 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>
6363 </ paper-button >
6464 </ div >
6565 < 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 >
6772 </ template >
6873 </ paper-material >
6974 </ template >
@@ -82,6 +87,8 @@ <h1>Custom Element Profile</h1>
8287 allTagsStats : {
8388 type : Object ,
8489 } ,
90+
91+ showRegisterColumn : Boolean ,
8592 } ,
8693
8794 attached ( ) {
@@ -129,11 +136,15 @@ <h1>Custom Element Profile</h1>
129136 displayData . push ( tagStats ) ;
130137 this . maxCallbackTime = Math . max (
131138 this . maxCallbackTime ,
132- tagStats . register ,
133139 tagStats . created ,
134140 tagStats . attached ,
135141 tagStats . detached ,
136142 tagStats . attributeChanged ) ;
143+ if ( showRegisterColumn ) {
144+ this . maxCallbackTime = Math . max (
145+ this . maxCallbackTime ,
146+ tagStats . register ) ;
147+ }
137148 allTagsStats . count += tagStats . count ;
138149 allTagsStats . totalTime += tagStats . totalTime ;
139150 allTagsStats . register += tagStats . register ;
@@ -176,6 +187,6 @@ <h1>Custom Element Profile</h1>
176187} ) ( ) ;
177188 </ script >
178189 </ dom-module >
179- < polymer-panel > </ polymer-panel >
190+ < polymer-panel show-register-column =" false " > </ polymer-panel >
180191 </ body >
181192</ html >
You can’t perform that action at this time.
0 commit comments