aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-09-29 20:23:15 +0100
committerGitHub <[email protected]>2020-09-29 20:23:15 +0100
commit80b0b0ea03a36451210c6f1beec66aa1150f194f (patch)
treec5a634e9836978c0fbb679c2529eea518add1196 /crates/ide/src
parent7283783b98ed61ee4f94961b81ad06e2344098d2 (diff)
parente7df0ad2fb48166937fdd061e1ae559c72a81990 (diff)
Merge #6095
6095: Remove periodic gc stub r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src')
-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