Remove periodic gc stub

This commit is contained in:
Aleksey Kladov 2020-09-29 21:13:58 +02:00
parent 7283783b98
commit e7df0ad2fb
6 changed files with 13 additions and 64 deletions

View file

@ -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::<LibrarySymbolsStats>();
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)
}
}