@@ -152,28 +152,28 @@ <h4>Artifact Size</h4>
152152 }
153153
154154 function populate_data ( data , state ) {
155- let txt = `${ state . commit . substring ( 0 , 10 ) } : Self profile results for ${ state . benchmark } run ${ state . run_name } ` ;
155+ let txt = `${ state . commit . substring ( 0 , 10 ) } : Self profile results for ${ state . benchmark } run ${ state . scenario } ` ;
156156 if ( state . base_commit ) {
157157 let self_href =
158- `/detailed-query.html?sort_idx=${ state . sort_idx } &commit=${ state . commit } &run_name =${ state . run_name } &benchmark=${ state . benchmark } ` ;
158+ `/detailed-query.html?sort_idx=${ state . sort_idx } &commit=${ state . commit } &scenario =${ state . scenario } &benchmark=${ state . benchmark } ` ;
159159 let base_href =
160- `/detailed-query.html?sort_idx=${ state . sort_idx } &commit=${ state . base_commit } &run_name =${ state . run_name } &benchmark=${ state . benchmark } ` ;
160+ `/detailed-query.html?sort_idx=${ state . sort_idx } &commit=${ state . base_commit } &scenario =${ state . scenario } &benchmark=${ state . benchmark } ` ;
161161 txt += `<br>diff vs base ${ state . base_commit . substring ( 0 , 10 ) } , <a href="${ base_href } ">query info for just base commit</a>` ;
162162 txt += `<br><a href="${ self_href } ">query info for just this commit</a>` ;
163163 }
164164 document . querySelector ( "#title" ) . innerHTML = txt ;
165165 let dl_url = ( commit , bench , run ) => {
166- return `/perf/download-raw-self-profile?commit=${ commit } &benchmark=${ bench } &run_name =${ run } `
166+ return `/perf/download-raw-self-profile?commit=${ commit } &benchmark=${ bench } &scenario =${ run } `
167167 } ;
168168 let dl_link = ( commit , bench , run ) => {
169169 let url = dl_url ( commit , bench , run ) ;
170170 return `<a href="${ url } ">raw</a>` ;
171171 } ;
172172 let processed_url = ( commit , bench , run , ty ) => {
173- return `/perf/processed-self-profile?commit=${ commit } &benchmark=${ bench } &run_name =${ run } &type=${ ty } ` ;
173+ return `/perf/processed-self-profile?commit=${ commit } &benchmark=${ bench } &scenario =${ run } &type=${ ty } ` ;
174174 } ;
175- let processed_link = ( commit , { benchmark, run_name } , ty ) => {
176- let url = processed_url ( commit , benchmark , run_name , ty ) ;
175+ let processed_link = ( commit , { benchmark, scenario } , ty ) => {
176+ let url = processed_url ( commit , benchmark , scenario , ty ) ;
177177 return `<a href="${ url } ">${ ty } </a>` ;
178178 } ;
179179 let processed_crox_url = ( commit , bench , run ) => {
@@ -194,52 +194,52 @@ <h4>Artifact Size</h4>
194194 txt = "" ;
195195 if ( state . base_commit ) {
196196 txt += `Download/view
197- ${ dl_link ( state . base_commit , state . benchmark , state . run_name ) } ,
197+ ${ dl_link ( state . base_commit , state . benchmark , state . scenario ) } ,
198198 ${ processed_link ( state . base_commit , state , "flamegraph" ) } ,
199199 ${ processed_link ( state . base_commit , state , "crox" ) } ,
200200 ${ processed_link ( state . base_commit , state , "codegen-schedule" ) }
201- (${ speedscope_link ( state . base_commit , state . benchmark , state . run_name ) } ,
202- ${ firefox_profiler_link ( state . base_commit , state . benchmark , state . run_name ) } )
201+ (${ speedscope_link ( state . base_commit , state . benchmark , state . scenario ) } ,
202+ ${ firefox_profiler_link ( state . base_commit , state . benchmark , state . scenario ) } )
203203 results for ${ state . base_commit . substring ( 0 , 10 ) } (base commit)` ;
204204 txt += "<br>" ;
205205 }
206206 txt += `Download/view
207- ${ dl_link ( state . commit , state . benchmark , state . run_name ) } ,
207+ ${ dl_link ( state . commit , state . benchmark , state . scenario ) } ,
208208 ${ processed_link ( state . commit , state , "flamegraph" ) } ,
209209 ${ processed_link ( state . commit , state , "crox" ) } ,
210210 ${ processed_link ( state . commit , state , "codegen-schedule" ) }
211- (${ speedscope_link ( state . commit , state . benchmark , state . run_name ) } ,
212- ${ firefox_profiler_link ( state . commit , state . benchmark , state . run_name ) } )
211+ (${ speedscope_link ( state . commit , state . benchmark , state . scenario ) } ,
212+ ${ firefox_profiler_link ( state . commit , state . benchmark , state . scenario ) } )
213213 results for ${ state . commit . substring ( 0 , 10 ) } (new commit)` ;
214214 let profile = b => b . endsWith ( "-opt" ) ? "Opt" :
215- b . endsWith ( "-doc" ) ? "Doc" :
216- b . endsWith ( "-debug" ) ? "Debug" :
215+ b . endsWith ( "-doc" ) ? "Doc" :
216+ b . endsWith ( "-debug" ) ? "Debug" :
217217 b . endsWith ( "-check" ) ? "Check" : "???" ;
218218 let bench_name = b => b . replace ( / - [ ^ - ] * $ / , "" ) ;
219- let run_filter = r => r == "full" ? "Full" :
220- r == "incr-full" ? "IncrFull" :
221- r == "incr-unchanged" ? "IncrUnchanged" :
222- r . startsWith ( "incr-patched" ) ? "IncrPatched" :
223- "???" ;
219+ let scenario_filter = s => s == "full" ? "Full" :
220+ s == "incr-full" ? "IncrFull" :
221+ s == "incr-unchanged" ? "IncrUnchanged" :
222+ s . startsWith ( "incr-patched" ) ? "IncrPatched" :
223+ "???" ;
224224 if ( state . base_commit ) {
225225 txt += "<br>" ;
226226 txt += `Diff: <a
227- href="/perf/processed-self-profile?commit=${ state . commit } &base_commit=${ state . base_commit } &benchmark=${ state . benchmark } &run_name =${ state . run_name } &type=codegen-schedule"
227+ href="/perf/processed-self-profile?commit=${ state . commit } &base_commit=${ state . base_commit } &benchmark=${ state . benchmark } &scenario =${ state . scenario } &type=codegen-schedule"
228228 >codegen-schedule</a>` ;
229229 txt += "<br>Local profile (base): <code>" +
230230 `./target/release/collector profile_local cachegrind
231231 +${ state . base_commit } --include ${ bench_name ( state . benchmark ) } --builds
232- ${ profile ( state . benchmark ) } --runs ${ run_filter ( state . run_name ) } </code>` ;
232+ ${ profile ( state . benchmark ) } --runs ${ scenario_filter ( state . scenario ) } </code>` ;
233233 }
234234 txt += "<br>Local profile (new): <code>" +
235235 `./target/release/collector profile_local cachegrind
236236 +${ state . commit } --include ${ bench_name ( state . benchmark ) } --builds
237- ${ profile ( state . benchmark ) } --runs ${ run_filter ( state . run_name ) } </code>` ;
237+ ${ profile ( state . benchmark ) } --runs ${ scenario_filter ( state . scenario ) } </code>` ;
238238 if ( state . base_commit ) {
239- txt += "<br>Local profile (diff): <code>" +
240- `./target/release/collector diff_local cachegrind
239+ txt += "<br>Local profile (diff): <code>" +
240+ `./target/release/collector diff_local cachegrind
241241 +${ state . base_commit } +${ state . commit } --include ${ bench_name ( state . benchmark ) } --builds
242- ${ profile ( state . benchmark ) } --runs ${ run_filter ( state . run_name ) } </code>` ;
242+ ${ profile ( state . benchmark ) } --runs ${ scenario_filter ( state . scenario ) } </code>` ;
243243 }
244244 document . querySelector ( "#raw-urls" ) . innerHTML = txt ;
245245 let sort_idx = state . sort_idx ;
@@ -276,7 +276,7 @@ <h4>Artifact Size</h4>
276276 th . innerHTML = `<a href="${ query_string_for_state ( clickState ) } ">${ inner } </a>` ;
277277 }
278278
279- if ( ! state . run_name . includes ( "incr-" ) ) {
279+ if ( ! state . scenario . includes ( "incr-" ) ) {
280280 // No need to show incremental columns if not showing
281281 // incremental data.
282282 document . body . classList . add ( "hide-incr" ) ;
0 commit comments