diff --git a/Cargo.lock b/Cargo.lock index 1aa121030e..f39cd01c37 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -963,6 +963,7 @@ dependencies = [ "ra_db", "ra_fmt", "ra_hir", + "ra_prof", "ra_syntax", "ra_text_edit", "rustc-hash", diff --git a/crates/ra_assists/Cargo.toml b/crates/ra_assists/Cargo.toml index 0d2109e4ed..9d3091b919 100644 --- a/crates/ra_assists/Cargo.toml +++ b/crates/ra_assists/Cargo.toml @@ -16,6 +16,7 @@ either = "1.5" ra_syntax = { path = "../ra_syntax" } ra_text_edit = { path = "../ra_text_edit" } ra_fmt = { path = "../ra_fmt" } +ra_prof = { path = "../ra_prof" } ra_db = { path = "../ra_db" } hir = { path = "../ra_hir", package = "ra_hir" } test_utils = { path = "../test_utils" } diff --git a/crates/ra_assists/src/assists/add_missing_impl_members.rs b/crates/ra_assists/src/assists/add_missing_impl_members.rs index 5bb937bdef..e4c22ad559 100644 --- a/crates/ra_assists/src/assists/add_missing_impl_members.rs +++ b/crates/ra_assists/src/assists/add_missing_impl_members.rs @@ -99,6 +99,7 @@ fn add_missing_impl_members_inner( assist_id: &'static str, label: &'static str, ) -> Option { + let _p = ra_prof::profile("add_missing_impl_members_inner"); let impl_node = ctx.find_node_at_offset::()?; let impl_item_list = impl_node.item_list()?;