Skip to content

Commit 19de59a

Browse files
bors[bot]matklad
andauthored
Merge #3028
3028: Add profiling around add_impl_members r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents ea9d18b + ec6fb8d commit 19de59a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_assists/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ either = "1.5"
1616
ra_syntax = { path = "../ra_syntax" }
1717
ra_text_edit = { path = "../ra_text_edit" }
1818
ra_fmt = { path = "../ra_fmt" }
19+
ra_prof = { path = "../ra_prof" }
1920
ra_db = { path = "../ra_db" }
2021
hir = { path = "../ra_hir", package = "ra_hir" }
2122
test_utils = { path = "../test_utils" }

crates/ra_assists/src/assists/add_missing_impl_members.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ fn add_missing_impl_members_inner(
9999
assist_id: &'static str,
100100
label: &'static str,
101101
) -> Option<Assist> {
102+
let _p = ra_prof::profile("add_missing_impl_members_inner");
102103
let impl_node = ctx.find_node_at_offset::<ast::ImplBlock>()?;
103104
let impl_item_list = impl_node.item_list()?;
104105

0 commit comments

Comments
 (0)