|
13 | 13 | padding-left: 1em;
|
14 | 14 | }
|
15 | 15 |
|
| 16 | + body.hide-incr .incr { |
| 17 | + display: none; |
| 18 | + } |
| 19 | + |
16 | 20 | body.hide-delta .delta {
|
17 | 21 | display: none;
|
18 | 22 | }
|
|
50 | 54 | <h3 id="title"></h3>
|
51 | 55 | <p>Totals row '%total time' is as a comparison to the 'cpu-clock' stat (we do not use
|
52 | 56 | wall-time as we want to account for parallelism).</p>
|
| 57 | + <p>Executions do not include cached executions.</p> |
53 | 58 | <table>
|
54 | 59 | <thead>
|
55 | 60 | <tr id="table-header">
|
56 | 61 | <th data-sort-idx="1" data-default-sort-dir="1">Query/Function</th>
|
57 |
| - <th data-sort-idx="2" data-default-sort-dir="-1">Time</th> |
| 62 | + <th data-sort-idx="2" data-default-sort-dir="-1">Time (s)</th> |
58 | 63 | <th data-sort-idx="10" data-default-sort-dir="-1">% Total Time</th>
|
59 |
| - <th class="delta">Δ</th> |
60 |
| - <th data-sort-idx="5" data-default-sort-dir="-1">Full Executions</th> |
61 |
| - <th class="delta">Δ</th> |
62 |
| - <th data-sort-idx="7" data-default-sort-dir="-1" title="Incremental loading time">Loading</th> |
63 |
| - <th class="delta">Δ</th> |
| 64 | + <th class="delta">Execution time delta</th> |
| 65 | + <th data-sort-idx="5" data-default-sort-dir="-1">Executions</th> |
| 66 | + <th class="delta">Executions delta</th> |
| 67 | + <th class="incr" data-sort-idx="7" |
| 68 | + data-default-sort-dir="-1" title="Incremental loading time">Incremental loading (s)</th> |
| 69 | + <th class="incr" class="delta">Incremental loading delta</th> |
64 | 70 | </tr>
|
65 | 71 | </thead>
|
66 | 72 | <tbody id="primary-table">
|
@@ -144,6 +150,13 @@ <h3 id="title"></h3>
|
144 | 150 | let inner = th.innerHTML;
|
145 | 151 | th.innerHTML = `<a href="${query_string_for_state(clickState)}">${inner}</a>`;
|
146 | 152 | }
|
| 153 | + |
| 154 | + if (!state.run_name.includes("incr-")) { |
| 155 | + // No need to show incremental columns if not showing |
| 156 | + // incremental data. |
| 157 | + document.body.classList.add("hide-incr"); |
| 158 | + } |
| 159 | + |
147 | 160 | let table = document.getElementById("primary-table");
|
148 | 161 | let idx = 0;
|
149 | 162 | for (let element of [data.profile.totals, ...data.profile.query_data]) {
|
@@ -189,16 +202,17 @@ <h3 id="title"></h3>
|
189 | 202 | } else {
|
190 | 203 | td(row, "-", true);
|
191 | 204 | }
|
192 |
| - td(row, to_seconds(cur.incremental_load_time).toFixed(3)); |
| 205 | + td(row, |
| 206 | + to_seconds(cur.incremental_load_time).toFixed(3)).classList.add("incr"); |
193 | 207 | if (prev) {
|
194 | 208 | td(row,
|
195 | 209 | fmt_delta(
|
196 | 210 | to_seconds(prev.incremental_load_time),
|
197 | 211 | to_seconds(cur.incremental_load_time),
|
198 | 212 | ),
|
199 |
| - true); |
| 213 | + true).classList.add("incr"); |
200 | 214 | } else {
|
201 |
| - td(row, "-", true); |
| 215 | + td(row, "-", true).classList.add("incr"); |
202 | 216 | }
|
203 | 217 | table.appendChild(row);
|
204 | 218 | idx += 1;
|
|
0 commit comments