@@ -150,7 +150,7 @@ where
150
150
fn process_commits (
151
151
out_repo : outrepo:: Repo ,
152
152
benchmarks : & [ Benchmark ] ,
153
- collect_self_profile : bool ,
153
+ self_profile : bool ,
154
154
) -> anyhow:: Result < ( ) > {
155
155
println ! ( "processing commits" ) ;
156
156
let client = reqwest:: Client :: new ( ) ;
@@ -180,7 +180,7 @@ fn process_commits(
180
180
& benchmarks,
181
181
3 ,
182
182
true ,
183
- collect_self_profile ,
183
+ self_profile ,
184
184
) ) ;
185
185
if let Err ( err) = result {
186
186
panic ! ( "failed to record success: {:?}" , err) ;
@@ -254,7 +254,7 @@ fn bench_commit(
254
254
benchmarks : & [ Benchmark ] ,
255
255
iterations : usize ,
256
256
call_home : bool ,
257
- collect_self_profile : bool ,
257
+ self_profile : bool ,
258
258
) -> CommitData {
259
259
info ! (
260
260
"benchmarking commit {} ({}) for triple {}" ,
@@ -285,7 +285,7 @@ fn bench_commit(
285
285
}
286
286
287
287
let has_measureme = Command :: new ( "summarize" ) . output ( ) . is_ok ( ) ;
288
- if collect_self_profile {
288
+ if self_profile {
289
289
assert ! (
290
290
has_measureme,
291
291
"needs `summarize` in PATH for self profile.\n \
@@ -298,7 +298,7 @@ fn bench_commit(
298
298
continue ;
299
299
}
300
300
301
- let mut processor = execute:: MeasureProcessor :: new ( collect_self_profile ) ;
301
+ let mut processor = execute:: MeasureProcessor :: new ( self_profile ) ;
302
302
let result =
303
303
benchmark. measure ( & mut processor, build_kinds, run_kinds, compiler, iterations) ;
304
304
let result = match result {
@@ -455,7 +455,7 @@ fn main_result() -> anyhow::Result<i32> {
455
455
let exclude = matches. value_of ( "exclude" ) ;
456
456
let benchmarks = get_benchmarks ( & benchmark_dir, filter, exclude) ?;
457
457
let use_remote = matches. is_present ( "sync_git" ) ;
458
- let collect_self_profile = matches. is_present ( "self_profile" ) ;
458
+ let self_profile = matches. is_present ( "self_profile" ) ;
459
459
460
460
let get_out_dir = || {
461
461
let path = PathBuf :: from ( matches. value_of_os ( "output_repo" ) . unwrap ( ) ) ;
@@ -483,7 +483,7 @@ fn main_result() -> anyhow::Result<i32> {
483
483
& benchmarks,
484
484
3 ,
485
485
false ,
486
- collect_self_profile ,
486
+ self_profile ,
487
487
) ) ?;
488
488
Ok ( 0 )
489
489
}
@@ -523,7 +523,7 @@ fn main_result() -> anyhow::Result<i32> {
523
523
& benchmarks,
524
524
1 ,
525
525
false ,
526
- collect_self_profile ,
526
+ self_profile ,
527
527
) ;
528
528
get_out_repo ( true ) ?. add_commit_data ( & result) ?;
529
529
Ok ( 0 )
@@ -536,7 +536,7 @@ fn main_result() -> anyhow::Result<i32> {
536
536
}
537
537
538
538
( "process" , Some ( _) ) => {
539
- process_commits ( get_out_repo ( false ) ?, & benchmarks, collect_self_profile ) ?;
539
+ process_commits ( get_out_repo ( false ) ?, & benchmarks, self_profile ) ?;
540
540
Ok ( 0 )
541
541
}
542
542
@@ -621,7 +621,7 @@ fn main_result() -> anyhow::Result<i32> {
621
621
& benchmarks,
622
622
1 ,
623
623
false ,
624
- collect_self_profile ,
624
+ self_profile ,
625
625
) ;
626
626
} else {
627
627
panic ! ( "no commits" ) ;
0 commit comments