@@ -10,7 +10,7 @@ use collector::compile::benchmark::scenario::Scenario;
1010use collector:: compile:: benchmark:: {
1111 compile_benchmark_dir, get_compile_benchmarks, ArtifactType , Benchmark , BenchmarkName ,
1212} ;
13- use collector:: { runtime , utils, CollectorCtx , CollectorStepBuilder } ;
13+ use collector:: { utils, CollectorCtx , CollectorStepBuilder } ;
1414use database:: { ArtifactId , ArtifactIdNumber , Commit , CommitType , Connection , Pool } ;
1515use rayon:: iter:: { IndexedParallelIterator , IntoParallelRefIterator , ParallelIterator } ;
1616use std:: cmp:: Ordering ;
@@ -30,12 +30,12 @@ use tokio::runtime::Runtime;
3030
3131use collector:: compile:: execute:: bencher:: BenchProcessor ;
3232use collector:: compile:: execute:: profiler:: { ProfileProcessor , Profiler } ;
33- use collector:: runtime:: profile_runtime;
3433use collector:: runtime:: {
3534 bench_runtime, prepare_runtime_benchmark_suite, runtime_benchmark_dir, BenchmarkFilter ,
3635 BenchmarkSuite , BenchmarkSuiteCompilation , CargoIsolationMode , RuntimeProfiler ,
3736 DEFAULT_RUNTIME_ITERATIONS ,
3837} ;
38+ use collector:: runtime:: { profile_runtime, RuntimeCompilationOpts } ;
3939use collector:: toolchain:: {
4040 create_toolchain_from_published_version, get_local_toolchain, Sysroot , Toolchain ,
4141} ;
@@ -697,6 +697,9 @@ fn main_result() -> anyhow::Result<i32> {
697697 & toolchain,
698698 & runtime_benchmark_dir,
699699 CargoIsolationMode :: Cached ,
700+ // Compile with debuginfo to have filenames and line numbers available in the
701+ // generated profiles.
702+ RuntimeCompilationOpts :: default ( ) . debug_info ( "1" ) ,
700703 ) ?
701704 . suite ;
702705 profile_runtime ( profiler, suite, & benchmark) ?;
@@ -1043,7 +1046,12 @@ async fn load_runtime_benchmarks(
10431046 let BenchmarkSuiteCompilation {
10441047 suite,
10451048 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+ ) ?;
10471055
10481056 record_runtime_compilation_errors ( conn, artifact_id, failed_to_compile) . await ;
10491057 Ok ( suite)
0 commit comments