Add profiling calls

This commit is contained in:
Aleksey Kladov 2020-07-10 18:53:01 +02:00
parent 86bc4d20b3
commit be679a02ab
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,7 @@ use crate::{
to_proto::url_from_abs_path,
Result,
};
use ra_prof::profile;
#[derive(Eq, PartialEq, Copy, Clone)]
pub(crate) enum Status {
@ -122,6 +123,7 @@ impl GlobalState {
}
pub(crate) fn process_changes(&mut self) -> bool {
let _p = profile("GlobalState::process_changes");
let mut fs_changes = Vec::new();
let mut has_fs_changes = false;