diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-11-27 16:14:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-27 16:14:04 +0000 |
commit | 0993f9067cfc14cded484906283d1df8e8741e8e (patch) | |
tree | 235ecf5049b1af3ed8fdf35cad5b66ceb8f28ff4 /crates/completion/src/render/function.rs | |
parent | c66d477f5a72247b04b9025f6ba9c403ca628d41 (diff) | |
parent | 04cd4b17bb04031ecf7c7e9b734d22ea74d8f114 (diff) |
Merge #6651
6651: Profile completions better r=SomeoneToIgnore a=SomeoneToIgnore
During https://github.com/rust-analyzer/rust-analyzer/issues/6612 investigation, had added a few more profiling points and considered that they can be useful later, ergo the PR.
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/completion/src/render/function.rs')
-rw-r--r-- | crates/completion/src/render/function.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/completion/src/render/function.rs b/crates/completion/src/render/function.rs index 9dd5cd18c..e8b726ad6 100644 --- a/crates/completion/src/render/function.rs +++ b/crates/completion/src/render/function.rs | |||
@@ -15,6 +15,7 @@ pub(crate) fn render_fn<'a>( | |||
15 | local_name: Option<String>, | 15 | local_name: Option<String>, |
16 | fn_: hir::Function, | 16 | fn_: hir::Function, |
17 | ) -> CompletionItem { | 17 | ) -> CompletionItem { |
18 | let _p = profile::span("render_fn"); | ||
18 | FunctionRender::new(ctx, local_name, fn_).render(import_data) | 19 | FunctionRender::new(ctx, local_name, fn_).render(import_data) |
19 | } | 20 | } |
20 | 21 | ||