From 0d6b8baa896f337dde27d569c09ebaab029e6daa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 16 Mar 2019 17:52:26 +0300 Subject: log time --- crates/ra_hir/src/nameres.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 30e959c04..4ff81af7f 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs @@ -180,6 +180,7 @@ impl CrateDefMap { db: &impl PersistentHirDatabase, krate: Crate, ) -> Arc { + let start = std::time::Instant::now(); let def_map = { let edition = krate.edition(db); let mut modules: Arena = Arena::default(); @@ -196,6 +197,7 @@ impl CrateDefMap { } }; let def_map = collector::collect_defs(db, def_map); + log::info!("crate_def_map_query: {:?}", start.elapsed()); Arc::new(def_map) } -- cgit v1.2.3