mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
rustc-metadata: Store crate name in self-profile of metadata_register_crate
When profiling a build of Zed, I found myself in need of names of crates that take the longest to register in downstream crates.
This commit is contained in:
parent
22e241e32e
commit
ad84934e6f
@ -397,7 +397,8 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
|
|||||||
name: Symbol,
|
name: Symbol,
|
||||||
private_dep: Option<bool>,
|
private_dep: Option<bool>,
|
||||||
) -> Result<CrateNum, CrateError> {
|
) -> Result<CrateNum, CrateError> {
|
||||||
let _prof_timer = self.sess.prof.generic_activity("metadata_register_crate");
|
let _prof_timer =
|
||||||
|
self.sess.prof.generic_activity_with_arg("metadata_register_crate", name.as_str());
|
||||||
|
|
||||||
let Library { source, metadata } = lib;
|
let Library { source, metadata } = lib;
|
||||||
let crate_root = metadata.get_root();
|
let crate_root = metadata.get_root();
|
||||||
|
Loading…
Reference in New Issue
Block a user