File tree Expand file tree Collapse file tree 2 files changed +13
-21
lines changed
site/frontend/src/pages/compare/compile Expand file tree Collapse file tree 2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,6 @@ function updateFilter(newFilter: CompileBenchmarkFilter) {
193
193
refreshQuickLinks ();
194
194
}
195
195
196
- // We pass the event target here, because Parcel cannot handle the `as`
197
- // cast directly in the template.
198
- function updateSelfCompareBackend(target : EventTarget ) {
199
- const element = target as HTMLInputElement ;
200
- updateFilter ({... filter .value , selfCompareBackend: element .checked });
201
- }
202
-
203
196
/**
204
197
* When the filter changes, the URL is updated.
205
198
* After that happens, we want to re-render the quick links component, because
@@ -261,20 +254,10 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
261
254
:selected-metric =" selector.stat"
262
255
:metrics =" benchmarkInfo.compile_metrics"
263
256
/>
264
- <div
265
- v-if =" canCompareBackends"
266
- :title =" `Compare codegen backends for commit '${props.data.a.commit}'`"
267
- >
268
- Compare codegen backends for this commit:
269
- <input
270
- type =" checkbox"
271
- :checked =" selfCompareBackend"
272
- @change =" (e) => updateSelfCompareBackend(e.target)"
273
- />
274
- </div >
275
257
<Filters
276
- :defaultFilter =" defaultCompileFilter"
277
- :initialFilter =" filter"
258
+ :default-filter =" defaultCompileFilter"
259
+ :initial-filter =" filter"
260
+ :can-compare-backends =" canCompareBackends"
278
261
@change =" updateFilter"
279
262
@export =" exportData"
280
263
/>
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const props = defineProps<{
12
12
defaultFilter: CompileBenchmarkFilter ;
13
13
// Initialize the filter with this value
14
14
initialFilter: CompileBenchmarkFilter ;
15
+ canCompareBackends: boolean ;
15
16
}>();
16
17
const emit = defineEmits <{
17
18
(e : " change" , filter : CompileBenchmarkFilter ): void ;
@@ -192,7 +193,7 @@ const opened = createPersistedRef(PREF_FILTERS_OPENED);
192
193
<input type =" checkbox" v-model =" filter.backend.llvm" />
193
194
<span class =" label" >LLVM</span >
194
195
</label >
195
- <Tooltip >The default LLVM backend. </Tooltip >
196
+ <Tooltip >The default LLVM backend.</Tooltip >
196
197
</li >
197
198
<li >
198
199
<label >
@@ -289,6 +290,14 @@ const opened = createPersistedRef(PREF_FILTERS_OPENED);
289
290
style =" margin-left : 20px "
290
291
/>
291
292
</div >
293
+ <div
294
+ class =" section"
295
+ v-if =" canCompareBackends"
296
+ :title =" `Compare codegen backends for this commit`"
297
+ >
298
+ Compare codegen backends for this commit:
299
+ <input type =" checkbox" v-model =" filter.selfCompareBackend" />
300
+ </div >
292
301
<button @click =" reset" style =" margin-right : 10px " >
293
302
Reset filters
294
303
</button >
You can’t perform that action at this time.
0 commit comments