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
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,8 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
|
|||
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…
Add table
Add a link
Reference in a new issue