log times

This commit is contained in:
Aleksey Kladov 2018-12-22 11:48:49 +03:00
parent 82e3ab02af
commit 2639997973
2 changed files with 3 additions and 2 deletions

View File

@ -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());
}
}

View File

@ -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);