From b96da48809ec79b0e133bcb2bc220fb28885eb52 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 5 Mar 2020 14:21:47 +0100 Subject: Add profiling calls --- crates/ra_hir_def/src/data.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_hir_def/src/data.rs') diff --git a/crates/ra_hir_def/src/data.rs b/crates/ra_hir_def/src/data.rs index c5fb9428e..9fc43f3fb 100644 --- a/crates/ra_hir_def/src/data.rs +++ b/crates/ra_hir_def/src/data.rs @@ -6,6 +6,7 @@ use hir_expand::{ name::{name, AsName, Name}, AstId, InFile, }; +use ra_prof::profile; use ra_syntax::ast::{self, AstNode, ImplItem, ModuleItemOwner, NameOwner, TypeAscriptionOwner}; use crate::{ @@ -186,6 +187,7 @@ pub struct ImplData { impl ImplData { pub(crate) fn impl_data_query(db: &impl DefDatabase, id: ImplId) -> Arc { + let _p = profile("impl_data_query"); let impl_loc = id.lookup(db); let src = impl_loc.source(db); -- cgit v1.2.3