@@ -50,11 +50,8 @@ function populate_data(data, state: Selector) {
50
50
txt += `<br><a href="${ self_href } ">query info for just this commit</a>` ;
51
51
}
52
52
document . querySelector ( "#title" ) . innerHTML = txt ;
53
- let dl_url = ( commit , bench , run ) => {
54
- return `/perf/download-raw-self-profile?commit=${ commit } &benchmark=${ bench } &scenario=${ run } ` ;
55
- } ;
56
53
let dl_link = ( commit , bench , run ) => {
57
- let url = dl_url ( commit , bench , run ) ;
54
+ let url = `/perf/download-raw-self-profile? commit= ${ commit } &benchmark= ${ bench } &scenario= ${ run } ` ;
58
55
return `<a href="${ url } ">raw</a>` ;
59
56
} ;
60
57
let processed_url = ( commit , bench , run , ty ) => {
@@ -297,19 +294,19 @@ interface Selector {
297
294
commit : string ;
298
295
base_commit : string | null ;
299
296
benchmark : string ;
300
- // #[serde(alias = "run_name")]
301
297
scenario : string ;
302
298
sort_idx : string | number ;
303
299
}
304
300
305
301
async function loadData ( ) {
306
302
const params = getUrlParams ( ) ;
303
+ const { commit, base_commit, benchmark, scenario, sort_idx} = params ;
307
304
const selector : Selector = {
308
- commit : params [ "commit" ] ,
309
- base_commit : params [ " base_commit" ] ?? null ,
310
- benchmark : params [ "benchmark" ] ,
311
- scenario : params [ "scenario" ] ,
312
- sort_idx : params [ " sort_idx" ] ?? "-2"
305
+ commit,
306
+ base_commit : base_commit ?? null ,
307
+ benchmark,
308
+ scenario,
309
+ sort_idx : sort_idx ?? "-2"
313
310
} ;
314
311
315
312
const response = await postMsgpack ( SELF_PROFILE_DATA_URL , selector ) ;
0 commit comments