5515: Add profiling call r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-24 11:14:07 +00:00 committed by GitHub
commit bc0a378070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,6 +315,7 @@ impl<'db> SemanticsImpl<'db> {
} }
fn descend_into_macros(&self, token: SyntaxToken) -> SyntaxToken { fn descend_into_macros(&self, token: SyntaxToken) -> SyntaxToken {
let _p = profile("descend_into_macros");
let parent = token.parent(); let parent = token.parent();
let parent = self.find_file(parent); let parent = self.find_file(parent);
let sa = self.analyze2(parent.as_ref(), None); let sa = self.analyze2(parent.as_ref(), None);