@@ -86,6 +86,21 @@ function ActiveStatus({collector}: {collector: CollectorConfig}) {
8686function toggleShowJobs() {
8787 showJobs .value = ! showJobs .value ;
8888}
89+
90+ function formatBackend(job : BenchmarkJob ): string {
91+ if (job .kind === " compiletime" ) {
92+ return job .backend ;
93+ } else {
94+ return " " ;
95+ }
96+ }
97+ function formatProfile(job : BenchmarkJob ): string {
98+ if (job .kind === " compiletime" ) {
99+ return job .profile ;
100+ } else {
101+ return " " ;
102+ }
103+ }
89104 </script >
90105
91106<template >
@@ -151,46 +166,46 @@ function toggleShowJobs() {
151166 </div >
152167 </div >
153168 <table class =" table-collector" style =" border-collapse : collapse " >
154- <caption >
155- current benchmark jobs
156- </caption >
157169 <thead >
158170 <tr class =" table-header-row" >
159- <th class =" table-header-padding" >Tag / Sha</th >
160- <th class =" table-header-padding" >State</th >
161- <th class =" table-header-padding" >Started At</th >
162- <th class =" table-header-padding" >Backend</th >
163- <th class =" table-header-padding" >Profile</th >
164- <th class =" table-header-padding" >Dequeue Counter</th >
171+ <th >Tag</th >
172+ <th >Status</th >
173+ <th >Started at</th >
174+ <th >Completed at</th >
175+ <th >Kind</th >
176+ <th >Backend</th >
177+ <th >Profile</th >
178+ <th >Attempts</th >
165179 </tr >
166180 </thead >
167181 <tbody >
168182 <template v-for =" job in collector .jobs " >
169183 <tr v-if =" ACTIVE_FILTERS[job.status]" >
170- <td class =" table-cell-padding" >
171- {{ shortenTag(job.requestTag) }}
184+ <td >
172185 <CommitSha :tag =" job.requestTag" ></CommitSha >
173186 </td >
174- <td class = " table-cell-padding " >
187+ <td >
175188 {{ formatJobStatus(job.status) }}
176189 </td >
177- <td class = " table-cell-padding " >
190+ <td >
178191 {{ formatISODate(job.startedAt) }}
179192 </td >
180- <td class =" table-cell-padding" >{{ job.backend }}</td >
181- <td class =" table-cell-padding" >{{ job.profile }}</td >
182- <td class =" table-cell-padding" >
193+ <td >
194+ {{ formatISODate(job.completedAt) }}
195+ </td >
196+ <td >{{ job.kind }}</td >
197+ <td >{{ formatBackend(job) }}</td >
198+ <td >
199+ {{ formatProfile(job) }}
200+ </td >
201+ <td >
183202 {{ job.dequeCounter }}
184203 </td >
185204 </tr >
186205 </template >
187206 </tbody >
188207 </table >
189208 </div >
190-
191- <div class =" collector-no-work" v-if =" collector.jobs.length === 0" >
192- <h3 >no active benchmarks</h3 >
193- </div >
194209 </div >
195210</template >
196211
0 commit comments