@@ -152,28 +152,28 @@ <h4>Artifact Size</h4>
152
152
}
153
153
154
154
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 } ` ;
156
156
if ( state . base_commit ) {
157
157
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 } ` ;
159
159
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 } ` ;
161
161
txt += `<br>diff vs base ${ state . base_commit . substring ( 0 , 10 ) } , <a href="${ base_href } ">query info for just base commit</a>` ;
162
162
txt += `<br><a href="${ self_href } ">query info for just this commit</a>` ;
163
163
}
164
164
document . querySelector ( "#title" ) . innerHTML = txt ;
165
165
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 } `
167
167
} ;
168
168
let dl_link = ( commit , bench , run ) => {
169
169
let url = dl_url ( commit , bench , run ) ;
170
170
return `<a href="${ url } ">raw</a>` ;
171
171
} ;
172
172
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 } ` ;
174
174
} ;
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 ) ;
177
177
return `<a href="${ url } ">${ ty } </a>` ;
178
178
} ;
179
179
let processed_crox_url = ( commit , bench , run ) => {
@@ -194,52 +194,52 @@ <h4>Artifact Size</h4>
194
194
txt = "" ;
195
195
if ( state . base_commit ) {
196
196
txt += `Download/view
197
- ${ dl_link ( state . base_commit , state . benchmark , state . run_name ) } ,
197
+ ${ dl_link ( state . base_commit , state . benchmark , state . scenario ) } ,
198
198
${ processed_link ( state . base_commit , state , "flamegraph" ) } ,
199
199
${ processed_link ( state . base_commit , state , "crox" ) } ,
200
200
${ 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 ) } )
203
203
results for ${ state . base_commit . substring ( 0 , 10 ) } (base commit)` ;
204
204
txt += "<br>" ;
205
205
}
206
206
txt += `Download/view
207
- ${ dl_link ( state . commit , state . benchmark , state . run_name ) } ,
207
+ ${ dl_link ( state . commit , state . benchmark , state . scenario ) } ,
208
208
${ processed_link ( state . commit , state , "flamegraph" ) } ,
209
209
${ processed_link ( state . commit , state , "crox" ) } ,
210
210
${ 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 ) } )
213
213
results for ${ state . commit . substring ( 0 , 10 ) } (new commit)` ;
214
214
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" :
217
217
b . endsWith ( "-check" ) ? "Check" : "???" ;
218
218
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
+ "???" ;
224
224
if ( state . base_commit ) {
225
225
txt += "<br>" ;
226
226
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"
228
228
>codegen-schedule</a>` ;
229
229
txt += "<br>Local profile (base): <code>" +
230
230
`./target/release/collector profile_local cachegrind
231
231
+${ 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>` ;
233
233
}
234
234
txt += "<br>Local profile (new): <code>" +
235
235
`./target/release/collector profile_local cachegrind
236
236
+${ 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>` ;
238
238
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
241
241
+${ 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>` ;
243
243
}
244
244
document . querySelector ( "#raw-urls" ) . innerHTML = txt ;
245
245
let sort_idx = state . sort_idx ;
@@ -276,7 +276,7 @@ <h4>Artifact Size</h4>
276
276
th . innerHTML = `<a href="${ query_string_for_state ( clickState ) } ">${ inner } </a>` ;
277
277
}
278
278
279
- if ( ! state . run_name . includes ( "incr-" ) ) {
279
+ if ( ! state . scenario . includes ( "incr-" ) ) {
280
280
// No need to show incremental columns if not showing
281
281
// incremental data.
282
282
document . body . classList . add ( "hide-incr" ) ;
0 commit comments