Skip to content

Commit 60a59ae

Browse files
committed
Emit linker timing section
1 parent c9d3059 commit 60a59ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_interface/src/queries.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::sync::Arc;
44
use rustc_codegen_ssa::CodegenResults;
55
use rustc_codegen_ssa::traits::CodegenBackend;
66
use rustc_data_structures::svh::Svh;
7+
use rustc_errors::timings::TimingSection;
78
use rustc_hir::def_id::LOCAL_CRATE;
89
use rustc_metadata::EncodedMetadata;
910
use rustc_middle::dep_graph::DepGraph;
@@ -88,6 +89,7 @@ impl Linker {
8889
}
8990

9091
let _timer = sess.prof.verbose_generic_activity("link_crate");
92+
let _timing = sess.timings.start_section(sess.dcx(), TimingSection::Linking);
9193
codegen_backend.link(sess, codegen_results, self.metadata, &self.output_filenames)
9294
}
9395
}

0 commit comments

Comments
 (0)