From 387d7c7d96d6ef2b9b7f8e1da1b761a045df711b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 2 Apr 2021 15:28:51 +0300 Subject: minor: add profile call for resolve_obligations --- crates/hir_ty/src/infer.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs index 497a1beb7..674e9e6f9 100644 --- a/crates/hir_ty/src/infer.rs +++ b/crates/hir_ty/src/infer.rs @@ -340,6 +340,8 @@ impl<'a> InferenceContext<'a> { // no change return; } + let _span = profile::span("resolve_obligations_as_possible"); + self.last_obligations_check = Some(self.table.revision); let obligations = mem::replace(&mut self.obligations, Vec::new()); for obligation in obligations { -- cgit v1.2.3