aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_db/src')
-rw-r--r--crates/ra_ide_db/src/change.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/change.rs b/crates/ra_ide_db/src/change.rs
index d8da3f949..84c6f40ff 100644
--- a/crates/ra_ide_db/src/change.rs
+++ b/crates/ra_ide_db/src/change.rs
@@ -164,6 +164,15 @@ impl RootDatabase {
164 hir::db::BodyQuery.in_db(self).sweep(sweep); 164 hir::db::BodyQuery.in_db(self).sweep(sweep);
165 } 165 }
166 166
167 // Feature: Memory Usage
168 //
169 // Clears rust-analyzer's internal database and prints memory usage statistics.
170 //
171 // |===
172 // | Editor | Action Name
173 //
174 // | VS Code | **Rust Analyzer: Memory Usage (Clears Database)**
175 // |===
167 pub fn per_query_memory_usage(&mut self) -> Vec<(String, Bytes)> { 176 pub fn per_query_memory_usage(&mut self) -> Vec<(String, Bytes)> {
168 let mut acc: Vec<(String, Bytes)> = vec![]; 177 let mut acc: Vec<(String, Bytes)> = vec![];
169 let sweep = SweepStrategy::default().discard_values().sweep_all_revisions(); 178 let sweep = SweepStrategy::default().discard_values().sweep_all_revisions();