From 0f3e85002b74b45ac7862ccf7fe72650f59d679d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 21 May 2019 16:04:17 +0300 Subject: profile implements query --- crates/ra_hir/src/ty/traits.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/ra_hir/src/ty/traits.rs b/crates/ra_hir/src/ty/traits.rs index 190d018ff..f39749cab 100644 --- a/crates/ra_hir/src/ty/traits.rs +++ b/crates/ra_hir/src/ty/traits.rs @@ -4,6 +4,7 @@ use std::sync::{Arc, Mutex}; use rustc_hash::FxHashSet; use log::debug; use chalk_ir::cast::Cast; +use ra_prof::profile; use crate::{Crate, Trait, db::HirDatabase, ImplBlock}; use super::{TraitRef, Ty, Canonical}; @@ -81,6 +82,7 @@ pub(crate) fn implements_query( krate: Crate, trait_ref: Canonical, ) -> Option { + let _p = profile("implements_query"); let goal: chalk_ir::Goal = trait_ref.value.to_chalk(db).cast(); debug!("goal: {:?}", goal); let env = chalk_ir::Environment::new(); -- cgit v1.2.3