aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-11 02:39:44 +0100
committerAleksey Kladov <[email protected]>2020-07-11 02:41:01 +0100
commit5e25000763e97ef006dd05ac40198ae59e3f03c3 (patch)
tree7933c8914e42915c4cb62cba318a6731de2f808b /crates/ra_ide/src
parente7ba7f47a79a2881cf208ef9d944609e8fd4eec9 (diff)
Profiling example
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/completion.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion.rs b/crates/ra_ide/src/completion.rs
index f3a5e9573..2a285718e 100644
--- a/crates/ra_ide/src/completion.rs
+++ b/crates/ra_ide/src/completion.rs
@@ -106,6 +106,7 @@ pub(crate) fn completions(
106 config: &CompletionConfig, 106 config: &CompletionConfig,
107 position: FilePosition, 107 position: FilePosition,
108) -> Option<Completions> { 108) -> Option<Completions> {
109 let _s = ra_prof::Scope::enter();
109 let ctx = CompletionContext::new(db, position, config)?; 110 let ctx = CompletionContext::new(db, position, config)?;
110 111
111 let mut acc = Completions::default(); 112 let mut acc = Completions::default();