-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overview labelling and base table columns on available data (#162)
- Loading branch information
Showing
25 changed files
with
961 additions
and
1,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
{% | ||
const f = it.dataFormatters; | ||
const s = it.stats; | ||
|
||
%}<td class="stats-samples">{%= s.total.samples %}</td> | ||
<td><span class="stats-median" title="median">{%= f.r2(s.total.median) %}</span></td> | ||
<td><span class="stats-change" title="change over median run time">{%= f.per(s.total.change_m) %}</span></td> | ||
{% if (s.gcTime) { | ||
%}<td><span class="stats-median" title="median">{%= f.r0(s.gcTime.median) %}</span></td> | ||
<td><span class="stats-gc-change" title="change over median GC time">{%= f.per(s.gcTime.change_m) %}</span></td> | ||
{% } | ||
if (s.allocated) { | ||
%}<td><span class="stats-median" title="median">{%= f.asHumanMem(s.allocated.median) %}</span></td> | ||
<td><span class="stats-alloc-change" title="change over median allocated memory">{%= f.per(s.allocated.change_m) %}</span></td>{% | ||
} %} | ||
{% for (const i of it.criteriaOrder) { | ||
const cssClassForTotal = i === 'total' ? ' stats-total' : ''; | ||
let median; | ||
if (i === 'total') { | ||
median = f.r2(s[i].median); | ||
} else { | ||
switch (it.criteria[i].unit) { | ||
case 'bytes': | ||
median = f.asHumanMem(s[i].median); | ||
break; | ||
default: | ||
median = f.r0(s[i].median); | ||
break; | ||
} | ||
} | ||
|
||
const change = f.per(s[i].change_m); | ||
%} | ||
<td><span class="stats-median" title="median">{%= median %}</span></td> | ||
<td><span class="stats-change{%= cssClassForTotal %}" title="diff %">{%= change %}</span></td>{% | ||
} %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.