From 34b0409298cbc534bae4db92e39a7d760c9f47ef Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Mar 2020 11:55:43 +0100 Subject: Print crate name in profil --- crates/ra_hir_def/src/nameres.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 066b43ef9..81eac52ad 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs @@ -177,7 +177,8 @@ pub struct ModuleData { impl CrateDefMap { pub(crate) fn crate_def_map_query(db: &impl DefDatabase, krate: CrateId) -> Arc { - let _p = profile("crate_def_map_query"); + let _p = profile("crate_def_map_query") + .detail(|| db.crate_graph()[krate].display_name.clone().unwrap_or_default()); let def_map = { let edition = db.crate_graph()[krate].edition; let mut modules: Arena = Arena::default(); -- cgit v1.2.3