aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-03-16 14:52:26 +0000
committerAleksey Kladov <[email protected]>2019-03-17 09:53:22 +0000
commit0d6b8baa896f337dde27d569c09ebaab029e6daa (patch)
tree43ed1f5a342168c234709ce7154111b2c3bf2b91 /crates
parent967a4b64af2f09e11108d28f11565fa0f3e583a5 (diff)
log time
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/nameres.rs2
1 files changed, 2 insertions, 0 deletions
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 {
180 db: &impl PersistentHirDatabase, 180 db: &impl PersistentHirDatabase,
181 krate: Crate, 181 krate: Crate,
182 ) -> Arc<CrateDefMap> { 182 ) -> Arc<CrateDefMap> {
183 let start = std::time::Instant::now();
183 let def_map = { 184 let def_map = {
184 let edition = krate.edition(db); 185 let edition = krate.edition(db);
185 let mut modules: Arena<ModuleId, ModuleData> = Arena::default(); 186 let mut modules: Arena<ModuleId, ModuleData> = Arena::default();
@@ -196,6 +197,7 @@ impl CrateDefMap {
196 } 197 }
197 }; 198 };
198 let def_map = collector::collect_defs(db, def_map); 199 let def_map = collector::collect_defs(db, def_map);
200 log::info!("crate_def_map_query: {:?}", start.elapsed());
199 Arc::new(def_map) 201 Arc::new(def_map)
200 } 202 }
201 203