From cc963d2b1190578ad9f1d1f4589e8ea2c98c1a14 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 18 Jan 2021 14:01:52 +0300 Subject: Add profile call --- crates/project_model/src/workspace.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/project_model') diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs index c511320d7..bd990594b 100644 --- a/crates/project_model/src/workspace.rs +++ b/crates/project_model/src/workspace.rs @@ -537,6 +537,7 @@ fn sysroot_to_crate_graph( } fn get_rustc_cfg_options(target: Option<&str>) -> Vec { + let _p = profile::span("get_rustc_cfg_options"); let mut res = Vec::new(); // Some nightly-only cfgs, which are required for stdlib -- cgit v1.2.3