From 59f91f2f9ba4cb6fa86fccb8a427cb9af2ecd192 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 6 Mar 2020 16:40:38 +0100 Subject: Less confusing profile names --- crates/ra_hir_ty/src/db.rs | 2 +- crates/ra_hir_ty/src/infer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir_ty/src') diff --git a/crates/ra_hir_ty/src/db.rs b/crates/ra_hir_ty/src/db.rs index 85d85182f..c43619d1c 100644 --- a/crates/ra_hir_ty/src/db.rs +++ b/crates/ra_hir_ty/src/db.rs @@ -111,7 +111,7 @@ pub trait HirDatabase: DefDatabase { } fn infer(db: &impl HirDatabase, def: DefWithBodyId) -> Arc { - let _p = profile("infer"); + let _p = profile("wait_infer"); db.do_infer(def) } diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs index 39f144216..437086ff6 100644 --- a/crates/ra_hir_ty/src/infer.rs +++ b/crates/ra_hir_ty/src/infer.rs @@ -64,7 +64,7 @@ mod coerce; /// The entry point of type inference. pub fn do_infer_query(db: &impl HirDatabase, def: DefWithBodyId) -> Arc { - let _p = profile("do_infer"); + let _p = profile("infer"); let resolver = def.resolver(db); let mut ctx = InferenceContext::new(db, def, resolver); -- cgit v1.2.3