|
5 | 5 | } from '../../wrapper/AnimationWrapper.ts'; |
6 | 6 | import { |
7 | 7 | DEFAULT_SORT_RAF, |
| 8 | + ESortOrder, |
8 | 9 | getSettings, |
9 | 10 | setSettings, |
10 | | - ESortOrder, |
11 | 11 | } from '../../api/settings.ts'; |
12 | 12 | import { compareByFieldOrder } from '../../api/comparator.ts'; |
13 | 13 | import { CALLED_ABORTED_TOOLTIP } from '../../api/const.ts'; |
|
45 | 45 | }); |
46 | 46 |
|
47 | 47 | function onChangeSort(_field: string, _order: ESortOrder) { |
48 | | - sortField = <keyof TRequestAnimationFrameHistory>_field; |
| 48 | + sortField = <keyof TRequestAnimationFrameHistory> _field; |
49 | 49 | sortOrder = _order; |
50 | 50 |
|
51 | 51 | setSettings({ |
|
101 | 101 |
|
102 | 102 | <table data-navigation-tag={caption}> |
103 | 103 | <caption class="bc-invert ta-l"> |
104 | | - {caption} |
105 | | - <Variable value={rafHistory.length} /> |
| 104 | + {caption} <Variable value={rafHistory.length} /> |
106 | 105 | </caption> |
107 | 106 | <tbody> |
108 | 107 | <tr> |
|
112 | 111 | field="selfTime" |
113 | 112 | currentField={sortField} |
114 | 113 | currentFieldOrder={sortOrder} |
115 | | - eventChangeSorting={onChangeSort}>Self</SortableColumn |
116 | | - > |
| 114 | + eventChangeSorting={onChangeSort} |
| 115 | + >Self</SortableColumn> |
117 | 116 | </th> |
118 | 117 | <th class="ta-c" title="Calls per second">CPS</th> |
119 | 118 | <th class="ta-c"> |
120 | 119 | <SortableColumn |
121 | 120 | field="calls" |
122 | 121 | currentField={sortField} |
123 | 122 | currentFieldOrder={sortOrder} |
124 | | - eventChangeSorting={onChangeSort}>Called</SortableColumn |
125 | | - > |
| 123 | + eventChangeSorting={onChangeSort} |
| 124 | + >Called</SortableColumn> |
126 | 125 | </th> |
127 | 126 | <th class="ta-c"> |
128 | 127 | <SortableColumn |
129 | 128 | field="handler" |
130 | 129 | currentField={sortField} |
131 | 130 | currentFieldOrder={sortOrder} |
132 | | - eventChangeSorting={onChangeSort}>Handler</SortableColumn |
133 | | - > |
| 131 | + eventChangeSorting={onChangeSort} |
| 132 | + >Handler</SortableColumn> |
134 | 133 | </th> |
135 | 134 | <th> |
136 | 135 | <SortableColumn |
137 | 136 | field="online" |
138 | 137 | currentField={sortField} |
139 | 138 | currentFieldOrder={sortOrder} |
140 | | - eventChangeSorting={onChangeSort}>Set</SortableColumn |
141 | | - > |
| 139 | + eventChangeSorting={onChangeSort} |
| 140 | + >Set</SortableColumn> |
142 | 141 | </th> |
143 | 142 | <th title="Bypass"><span class="icon -bypass"></span></th> |
144 | 143 | <th title="Breakpoint"><span class="icon -breakpoint"></span></th> |
|
153 | 152 | <td class="ta-r"><FrameSensitiveTime value={metric.selfTime} /></td> |
154 | 153 | <td class="ta-c">{metric.cps || undefined}</td> |
155 | 154 | <td class="ta-c"> |
156 | | - <Variable value={metric.calls} />{#if metric.canceledCounter}-<a |
| 155 | + <Variable value={metric.calls} /> |
| 156 | + {#if metric.canceledCounter}-<a |
157 | 157 | role="button" |
158 | 158 | href="void(0)" |
159 | 159 | title={CALLED_ABORTED_TOOLTIP} |
160 | 160 | onclick={(e) => { |
161 | 161 | e.preventDefault(); |
162 | 162 | onFindRegressors(metric.canceledByTraceIds); |
163 | 163 | }} |
164 | | - ><Variable value={metric.canceledCounter} />/{metric |
165 | | - .canceledByTraceIds?.length}</a |
166 | | - > |
| 164 | + ><Variable value={metric.canceledCounter} />/{ |
| 165 | + metric |
| 166 | + .canceledByTraceIds?.length |
| 167 | + }</a> |
167 | 168 | {/if} |
168 | 169 | </td> |
169 | 170 | <td class="ta-c"><Variable value={metric.handler} /></td> |
|
0 commit comments