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 @@ fn register_crate(
|
||||
name: Symbol,
|
||||
private_dep: Option<bool>,
|
||||
) -> 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 crate_root = metadata.get_root();
|
||||
|
Loading…
Reference in New Issue
Block a user