From 26399979730ebe18d37229735748a15c7000e315 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 22 Dec 2018 11:48:49 +0300 Subject: log times --- crates/ra_lsp_server/src/main_loop.rs | 4 +++- crates/ra_lsp_server/src/server_world.rs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index afe0fec89..11e7803e4 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -143,7 +143,8 @@ fn main_loop_inner( } recv(libdata_receiver, data) => Event::Lib(data.unwrap()) }; - log::info!("{:?}", event); + log::info!("loop_turn = {:?}", event); + let start = std::time::Instant::now(); let mut state_changed = false; match event { Event::Task(task) => on_task(task, msg_sender, pending_requests), @@ -206,6 +207,7 @@ fn main_loop_inner( subs.subscriptions(), ) } + log::info!("loop_turn = {:?}", start.elapsed()); } } diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs index 73cccc9dd..c183c25af 100644 --- a/crates/ra_lsp_server/src/server_world.rs +++ b/crates/ra_lsp_server/src/server_world.rs @@ -107,7 +107,6 @@ impl ServerWorldState { let mut libs = Vec::new(); let mut change = AnalysisChange::new(); for c in changes { - log::info!("vfs change {:?}", c); match c { VfsChange::AddRoot { root, files } => { let root_path = self.vfs.read().root2path(root); -- cgit v1.2.3