diff options
author | Aleksey Kladov <[email protected]> | 2020-07-10 17:53:01 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-10 21:30:24 +0100 |
commit | be679a02aba985ee458dd8441606bff0595a2ce2 (patch) | |
tree | af12bda2111b5b7913354c2ebde0d6dcb7c7f9b6 /crates/rust-analyzer/src/global_state.rs | |
parent | 86bc4d20b30b8deb7783c200ad9f5d3acf019116 (diff) |
Add profiling calls
Diffstat (limited to 'crates/rust-analyzer/src/global_state.rs')
-rw-r--r-- | crates/rust-analyzer/src/global_state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs index 728dc9962..9a9a6547a 100644 --- a/crates/rust-analyzer/src/global_state.rs +++ b/crates/rust-analyzer/src/global_state.rs | |||
@@ -26,6 +26,7 @@ use crate::{ | |||
26 | to_proto::url_from_abs_path, | 26 | to_proto::url_from_abs_path, |
27 | Result, | 27 | Result, |
28 | }; | 28 | }; |
29 | use ra_prof::profile; | ||
29 | 30 | ||
30 | #[derive(Eq, PartialEq, Copy, Clone)] | 31 | #[derive(Eq, PartialEq, Copy, Clone)] |
31 | pub(crate) enum Status { | 32 | pub(crate) enum Status { |
@@ -122,6 +123,7 @@ impl GlobalState { | |||
122 | } | 123 | } |
123 | 124 | ||
124 | pub(crate) fn process_changes(&mut self) -> bool { | 125 | pub(crate) fn process_changes(&mut self) -> bool { |
126 | let _p = profile("GlobalState::process_changes"); | ||
125 | let mut fs_changes = Vec::new(); | 127 | let mut fs_changes = Vec::new(); |
126 | let mut has_fs_changes = false; | 128 | let mut has_fs_changes = false; |
127 | 129 | ||