diff options
author | Aleksey Kladov <[email protected]> | 2020-08-12 15:32:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-12 15:35:29 +0100 |
commit | 208b7bd7ba687fb570feb1b89219f14c63712ce8 (patch) | |
tree | c39749d1b71b73b4017c2d0d848ebdc85e570c39 /crates/rust-analyzer/src/main_loop.rs | |
parent | 98baa9b569b49162392ed4149dd435854fe941b8 (diff) |
Rename ra_prof -> profile
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index e6cf46df2..32962b088 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -10,7 +10,6 @@ use lsp_server::{Connection, Notification, Request, Response}; | |||
10 | use lsp_types::notification::Notification as _; | 10 | use lsp_types::notification::Notification as _; |
11 | use ra_db::VfsPath; | 11 | use ra_db::VfsPath; |
12 | use ra_ide::{Canceled, FileId}; | 12 | use ra_ide::{Canceled, FileId}; |
13 | use ra_prof::profile; | ||
14 | 13 | ||
15 | use crate::{ | 14 | use crate::{ |
16 | config::Config, | 15 | config::Config, |
@@ -173,7 +172,7 @@ impl GlobalState { | |||
173 | fn handle_event(&mut self, event: Event) -> Result<()> { | 172 | fn handle_event(&mut self, event: Event) -> Result<()> { |
174 | let loop_start = Instant::now(); | 173 | let loop_start = Instant::now(); |
175 | // NOTE: don't count blocking select! call as a loop-turn time | 174 | // NOTE: don't count blocking select! call as a loop-turn time |
176 | let _p = profile("GlobalState::handle_event"); | 175 | let _p = profile::span("GlobalState::handle_event"); |
177 | 176 | ||
178 | log::info!("handle_event({:?})", event); | 177 | log::info!("handle_event({:?})", event); |
179 | let queue_count = self.task_pool.handle.len(); | 178 | let queue_count = self.task_pool.handle.len(); |
@@ -204,7 +203,7 @@ impl GlobalState { | |||
204 | self.analysis_host.maybe_collect_garbage(); | 203 | self.analysis_host.maybe_collect_garbage(); |
205 | } | 204 | } |
206 | Event::Vfs(mut task) => { | 205 | Event::Vfs(mut task) => { |
207 | let _p = profile("GlobalState::handle_event/vfs"); | 206 | let _p = profile::span("GlobalState::handle_event/vfs"); |
208 | loop { | 207 | loop { |
209 | match task { | 208 | match task { |
210 | vfs::loader::Message::Loaded { files } => { | 209 | vfs::loader::Message::Loaded { files } => { |