From c0d8921148d068d088589d545916801c60b6341e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Jul 2020 13:13:36 +0200 Subject: [PATCH] Add profiling call --- crates/ra_hir/src/semantics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index f5283ab220..1dbc095ff3 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs @@ -315,6 +315,7 @@ impl<'db> SemanticsImpl<'db> { } fn descend_into_macros(&self, token: SyntaxToken) -> SyntaxToken { + let _p = profile("descend_into_macros"); let parent = token.parent(); let parent = self.find_file(parent); let sa = self.analyze2(parent.as_ref(), None);