From e7df0ad2fb48166937fdd061e1ae559c72a81990 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 29 Sep 2020 21:13:58 +0200 Subject: Remove periodic gc stub --- crates/ide/src/lib.rs | 4 ---- crates/ide/src/status.rs | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'crates/ide') 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 { self.db.apply_change(change) } - pub fn maybe_collect_garbage(&mut self) { - self.db.maybe_collect_garbage(); - } - pub fn collect_garbage(&mut self) { self.db.collect_garbage(); } 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 { let macro_syntax_tree_stats = macro_syntax_tree_stats(db); let symbols_stats = LibrarySymbolsQuery.in_db(db).entries::(); format!( - "{}\n{}\n{}\n{} (macros)\n\n\nmemory:\n{}\ngc {:?} seconds ago", + "{}\n{}\n{}\n{} (macros)\n{} total\n", files_stats, symbols_stats, syntax_tree_stats, macro_syntax_tree_stats, memory_usage(), - db.last_gc.elapsed().as_secs(), ) } @@ -121,7 +120,7 @@ struct LibrarySymbolsStats { impl fmt::Display for LibrarySymbolsStats { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - write!(fmt, "{} ({}) symbols", self.total, self.size) + write!(fmt, "{} ({}) index symbols", self.total, self.size) } } -- cgit v1.2.3