diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-09 21:04:42 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-09 21:04:42 +0100 |
commit | b863272899a1bae63c7d9411d0ebff74652bae8e (patch) | |
tree | f5b95ae6af1ee37545eff70813c8940979e99daf /crates/ra_ide_api/src/status.rs | |
parent | cc284dad30de4990516eeccf60f24e613fd78a2a (diff) | |
parent | 88189c428242d2d65b749d0980eb447e72766e77 (diff) |
Merge #1126
1126: Swithc to native salsa interning r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/status.rs')
-rw-r--r-- | crates/ra_ide_api/src/status.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/status.rs b/crates/ra_ide_api/src/status.rs index e0fc1c123..d99a4e750 100644 --- a/crates/ra_ide_api/src/status.rs +++ b/crates/ra_ide_api/src/status.rs | |||
@@ -23,16 +23,11 @@ pub(crate) fn status(db: &RootDatabase) -> String { | |||
23 | let files_stats = db.query(FileTextQuery).entries::<FilesStats>(); | 23 | let files_stats = db.query(FileTextQuery).entries::<FilesStats>(); |
24 | let syntax_tree_stats = syntax_tree_stats(db); | 24 | let syntax_tree_stats = syntax_tree_stats(db); |
25 | let symbols_stats = db.query(LibrarySymbolsQuery).entries::<LibrarySymbolsStats>(); | 25 | let symbols_stats = db.query(LibrarySymbolsQuery).entries::<LibrarySymbolsStats>(); |
26 | let n_defs = { | ||
27 | let interner: &hir::HirInterner = db.as_ref(); | ||
28 | interner.len() | ||
29 | }; | ||
30 | format!( | 26 | format!( |
31 | "{}\n{}\n{}\n{} defs\n\nmemory:\n{}\ngc {:?} seconds ago", | 27 | "{}\n{}\n{}\n\n\nmemory:\n{}\ngc {:?} seconds ago", |
32 | files_stats, | 28 | files_stats, |
33 | symbols_stats, | 29 | symbols_stats, |
34 | syntax_tree_stats, | 30 | syntax_tree_stats, |
35 | n_defs, | ||
36 | MemoryStats::current(), | 31 | MemoryStats::current(), |
37 | db.last_gc.elapsed().as_secs(), | 32 | db.last_gc.elapsed().as_secs(), |
38 | ) | 33 | ) |