@@ -3,7 +3,7 @@ import {postMsgpack} from "../utils/requests";
3
3
import { SELF_PROFILE_DATA_URL } from "../urls" ;
4
4
import {
5
5
chromeProfileUrl ,
6
- processedSelfProfileRelativeUrl ,
6
+ processedSelfProfileRelativeUrl
7
7
} from "../self-profile" ;
8
8
import { openTraceInPerfetto } from "../perfetto" ;
9
9
@@ -173,23 +173,23 @@ function populate_data(data, state: Selector) {
173
173
b . endsWith ( "-opt" )
174
174
? "Opt"
175
175
: b . endsWith ( "-doc" )
176
- ? "Doc"
177
- : b . endsWith ( "-debug" )
178
- ? "Debug"
179
- : b . endsWith ( "-check" )
180
- ? "Check"
181
- : "???" ;
176
+ ? "Doc"
177
+ : b . endsWith ( "-debug" )
178
+ ? "Debug"
179
+ : b . endsWith ( "-check" )
180
+ ? "Check"
181
+ : "???" ;
182
182
let bench_name = ( b ) => b . replace ( / - [ ^ - ] * $ / , "" ) ;
183
183
let scenario_filter = ( s ) =>
184
184
s == "full"
185
185
? "Full"
186
186
: s == "incr-full"
187
- ? "IncrFull"
188
- : s == "incr-unchanged"
189
- ? "IncrUnchanged"
190
- : s . startsWith ( "incr-patched" )
191
- ? "IncrPatched"
192
- : "???" ;
187
+ ? "IncrFull"
188
+ : s == "incr-unchanged"
189
+ ? "IncrUnchanged"
190
+ : s . startsWith ( "incr-patched" )
191
+ ? "IncrPatched"
192
+ : "???" ;
193
193
if ( state . base_commit ) {
194
194
txt += "<br>" ;
195
195
txt += `Diff: <a
@@ -198,7 +198,7 @@ function populate_data(data, state: Selector) {
198
198
txt +=
199
199
"<br>Local profile (base): <code>" +
200
200
`./target/release/collector profile_local cachegrind
201
- +${ state . base_commit } --include ${ bench_name (
201
+ +${ state . base_commit } --exact-match ${ bench_name (
202
202
state . benchmark
203
203
) } --profiles
204
204
${ profile ( state . benchmark ) } --scenarios ${ scenario_filter (
@@ -208,7 +208,7 @@ function populate_data(data, state: Selector) {
208
208
txt +=
209
209
"<br>Local profile (new): <code>" +
210
210
`./target/release/collector profile_local cachegrind
211
- +${ state . commit } --include ${ bench_name (
211
+ +${ state . commit } --exact-match ${ bench_name (
212
212
state . benchmark
213
213
) } --profiles
214
214
${ profile ( state . benchmark ) } --scenarios ${ scenario_filter (
@@ -220,7 +220,7 @@ function populate_data(data, state: Selector) {
220
220
`./target/release/collector profile_local cachegrind
221
221
+${ state . base_commit } --rustc2 +${
222
222
state . commit
223
- } --include ${ bench_name ( state . benchmark ) } --profiles
223
+ } --exact-match ${ bench_name ( state . benchmark ) } --profiles
224
224
${ profile ( state . benchmark ) } --scenarios ${ scenario_filter (
225
225
state . scenario
226
226
) } </code>`;
@@ -395,7 +395,7 @@ function to_object(element) {
395
395
element . number_of_cache_hits ,
396
396
element . invocation_count ,
397
397
element . blocked_time ,
398
- element . incremental_load_time ,
398
+ element . incremental_load_time
399
399
] ;
400
400
}
401
401
let [
@@ -406,14 +406,14 @@ function to_object(element) {
406
406
_cache_hits ,
407
407
invocation_count ,
408
408
_blocked_time ,
409
- incremental_load_time ,
409
+ incremental_load_time
410
410
] = element ;
411
411
return {
412
412
label,
413
413
self_time,
414
414
percent_total_time,
415
415
invocation_count,
416
- incremental_load_time,
416
+ incremental_load_time
417
417
} ;
418
418
}
419
419
@@ -433,7 +433,7 @@ async function loadData() {
433
433
base_commit : base_commit ?? null ,
434
434
benchmark,
435
435
scenario,
436
- sort_idx : sort_idx ?? "-2" ,
436
+ sort_idx : sort_idx ?? "-2"
437
437
} ;
438
438
439
439
const response = await postMsgpack ( SELF_PROFILE_DATA_URL , selector ) ;
0 commit comments