@@ -10,7 +10,7 @@ use collector::compile::benchmark::scenario::Scenario;
10
10
use collector:: compile:: benchmark:: {
11
11
compile_benchmark_dir, get_compile_benchmarks, ArtifactType , Benchmark , BenchmarkName ,
12
12
} ;
13
- use collector:: { runtime , utils, CollectorCtx , CollectorStepBuilder } ;
13
+ use collector:: { utils, CollectorCtx , CollectorStepBuilder } ;
14
14
use database:: { ArtifactId , ArtifactIdNumber , Commit , CommitType , Connection , Pool } ;
15
15
use rayon:: iter:: { IndexedParallelIterator , IntoParallelRefIterator , ParallelIterator } ;
16
16
use std:: cmp:: Ordering ;
@@ -30,12 +30,12 @@ use tokio::runtime::Runtime;
30
30
31
31
use collector:: compile:: execute:: bencher:: BenchProcessor ;
32
32
use collector:: compile:: execute:: profiler:: { ProfileProcessor , Profiler } ;
33
- use collector:: runtime:: profile_runtime;
34
33
use collector:: runtime:: {
35
34
bench_runtime, prepare_runtime_benchmark_suite, runtime_benchmark_dir, BenchmarkFilter ,
36
35
BenchmarkSuite , BenchmarkSuiteCompilation , CargoIsolationMode , RuntimeProfiler ,
37
36
DEFAULT_RUNTIME_ITERATIONS ,
38
37
} ;
38
+ use collector:: runtime:: { profile_runtime, RuntimeCompilationOpts } ;
39
39
use collector:: toolchain:: {
40
40
create_toolchain_from_published_version, get_local_toolchain, Sysroot , Toolchain ,
41
41
} ;
@@ -697,6 +697,9 @@ fn main_result() -> anyhow::Result<i32> {
697
697
& toolchain,
698
698
& runtime_benchmark_dir,
699
699
CargoIsolationMode :: Cached ,
700
+ // Compile with debuginfo to have filenames and line numbers available in the
701
+ // generated profiles.
702
+ RuntimeCompilationOpts :: default ( ) . debug_info ( "1" ) ,
700
703
) ?
701
704
. suite ;
702
705
profile_runtime ( profiler, suite, & benchmark) ?;
@@ -1043,7 +1046,12 @@ async fn load_runtime_benchmarks(
1043
1046
let BenchmarkSuiteCompilation {
1044
1047
suite,
1045
1048
failed_to_compile,
1046
- } = runtime:: prepare_runtime_benchmark_suite ( toolchain, benchmark_dir, isolation_mode) ?;
1049
+ } = prepare_runtime_benchmark_suite (
1050
+ toolchain,
1051
+ benchmark_dir,
1052
+ isolation_mode,
1053
+ RuntimeCompilationOpts :: default ( ) ,
1054
+ ) ?;
1047
1055
1048
1056
record_runtime_compilation_errors ( conn, artifact_id, failed_to_compile) . await ;
1049
1057
Ok ( suite)
0 commit comments