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_def/src/db.rs | 2 +- crates/ra_hir_def/src/nameres.rs | 2 +- crates/ra_hir_ty/src/db.rs | 2 +- crates/ra_hir_ty/src/infer.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates') diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs index da273eb11..2338b2cbe 100644 --- a/crates/ra_hir_def/src/db.rs +++ b/crates/ra_hir_def/src/db.rs @@ -110,6 +110,6 @@ pub trait DefDatabase: InternDatabase + AstDatabase { } fn crate_def_map(db: &impl DefDatabase, krate: CrateId) -> Arc { - let _p = profile("crate_def_map"); + let _p = profile("wait_crate_def_map"); db.compute_crate_def_map(krate) } diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index c5137a0ab..166d1c421 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs @@ -182,7 +182,7 @@ impl CrateDefMap { db: &impl DefDatabase, krate: CrateId, ) -> Arc { - let _p = profile("compute_crate_def_map"); + let _p = profile("crate_def_map"); let def_map = { let crate_graph = db.crate_graph(); let edition = crate_graph.edition(krate); 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