aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/lib.rs4
-rw-r--r--crates/ide/src/status.rs5
2 files changed, 2 insertions, 7 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index 31f2bcba3..96dae9ee0 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -144,10 +144,6 @@ impl AnalysisHost {
144 self.db.apply_change(change) 144 self.db.apply_change(change)
145 } 145 }
146 146
147 pub fn maybe_collect_garbage(&mut self) {
148 self.db.maybe_collect_garbage();
149 }
150
151 pub fn collect_garbage(&mut self) { 147 pub fn collect_garbage(&mut self) {
152 self.db.collect_garbage(); 148 self.db.collect_garbage();
153 } 149 }
diff --git a/crates/ide/src/status.rs b/crates/ide/src/status.rs
index c23708181..1427c50cf 100644
--- a/crates/ide/src/status.rs
+++ b/crates/ide/src/status.rs
@@ -37,13 +37,12 @@ pub(crate) fn status(db: &RootDatabase) -> String {
37 let macro_syntax_tree_stats = macro_syntax_tree_stats(db); 37 let macro_syntax_tree_stats = macro_syntax_tree_stats(db);
38 let symbols_stats = LibrarySymbolsQuery.in_db(db).entries::<LibrarySymbolsStats>(); 38 let symbols_stats = LibrarySymbolsQuery.in_db(db).entries::<LibrarySymbolsStats>();
39 format!( 39 format!(
40 "{}\n{}\n{}\n{} (macros)\n\n\nmemory:\n{}\ngc {:?} seconds ago", 40 "{}\n{}\n{}\n{} (macros)\n{} total\n",
41 files_stats, 41 files_stats,
42 symbols_stats, 42 symbols_stats,
43 syntax_tree_stats, 43 syntax_tree_stats,
44 macro_syntax_tree_stats, 44 macro_syntax_tree_stats,
45 memory_usage(), 45 memory_usage(),
46 db.last_gc.elapsed().as_secs(),
47 ) 46 )
48} 47}
49 48
@@ -121,7 +120,7 @@ struct LibrarySymbolsStats {
121 120
122impl fmt::Display for LibrarySymbolsStats { 121impl fmt::Display for LibrarySymbolsStats {
123 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { 122 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
124 write!(fmt, "{} ({}) symbols", self.total, self.size) 123 write!(fmt, "{} ({}) index symbols", self.total, self.size)
125 } 124 }
126} 125}
127 126