diff options
author | Jonas Schievink <[email protected]> | 2020-06-22 15:59:15 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-06-24 15:53:16 +0100 |
commit | 19586bc5c62541db5253986c84ce3ba5c6392656 (patch) | |
tree | c96646505f863ce9d4b14bab29a4f357881d9aa8 /crates/ra_hir_def/src | |
parent | 1fbe21a545104e85aa5f9d0d8a45ec1040396cb9 (diff) |
Record HirFileId's in profiler
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/item_tree.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/item_tree.rs b/crates/ra_hir_def/src/item_tree.rs index c35d63295..59a4a411a 100644 --- a/crates/ra_hir_def/src/item_tree.rs +++ b/crates/ra_hir_def/src/item_tree.rs | |||
@@ -65,7 +65,7 @@ pub struct ItemTree { | |||
65 | 65 | ||
66 | impl ItemTree { | 66 | impl ItemTree { |
67 | pub fn item_tree_query(db: &dyn DefDatabase, file_id: HirFileId) -> Arc<ItemTree> { | 67 | pub fn item_tree_query(db: &dyn DefDatabase, file_id: HirFileId) -> Arc<ItemTree> { |
68 | let _p = ra_prof::profile("item_tree_query"); | 68 | let _p = ra_prof::profile("item_tree_query").detail(|| format!("{:?}", file_id)); |
69 | let syntax = if let Some(node) = db.parse_or_expand(file_id) { | 69 | let syntax = if let Some(node) = db.parse_or_expand(file_id) { |
70 | node | 70 | node |
71 | } else { | 71 | } else { |