aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/apply_change.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_db/src/apply_change.rs')
-rw-r--r--crates/ide_db/src/apply_change.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ide_db/src/apply_change.rs b/crates/ide_db/src/apply_change.rs
index 047a9b6bc..6c67425d7 100644
--- a/crates/ide_db/src/apply_change.rs
+++ b/crates/ide_db/src/apply_change.rs
@@ -101,6 +101,7 @@ impl RootDatabase {
101 // 101 //
102 // | VS Code | **Rust Analyzer: Memory Usage (Clears Database)** 102 // | VS Code | **Rust Analyzer: Memory Usage (Clears Database)**
103 // |=== 103 // |===
104 // image::https://user-images.githubusercontent.com/48062697/113065592-08559f00-91b1-11eb-8c96-64b88068ec02.gif[]
104 pub fn per_query_memory_usage(&mut self) -> Vec<(String, Bytes)> { 105 pub fn per_query_memory_usage(&mut self) -> Vec<(String, Bytes)> {
105 let mut acc: Vec<(String, Bytes)> = vec![]; 106 let mut acc: Vec<(String, Bytes)> = vec![];
106 let sweep = SweepStrategy::default().discard_values().sweep_all_revisions(); 107 let sweep = SweepStrategy::default().discard_values().sweep_all_revisions();
@@ -151,6 +152,10 @@ impl RootDatabase {
151 hir::db::FileItemTreeQuery 152 hir::db::FileItemTreeQuery
152 hir::db::BlockDefMapQuery 153 hir::db::BlockDefMapQuery
153 hir::db::CrateDefMapQueryQuery 154 hir::db::CrateDefMapQueryQuery
155 hir::db::FieldsAttrsQuery
156 hir::db::VariantsAttrsQuery
157 hir::db::FieldsAttrsSourceMapQuery
158 hir::db::VariantsAttrsSourceMapQuery
154 hir::db::StructDataQuery 159 hir::db::StructDataQuery
155 hir::db::UnionDataQuery 160 hir::db::UnionDataQuery
156 hir::db::EnumDataQuery 161 hir::db::EnumDataQuery