From e5c5c0a040e0c74892ea0a36c7fd50e5410879bd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 21 Jan 2021 19:04:50 +0300 Subject: Include `countme` crate to count important data structures. --- crates/ide/src/status.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ide/src') diff --git a/crates/ide/src/status.rs b/crates/ide/src/status.rs index e10d7c3a4..137c38c0d 100644 --- a/crates/ide/src/status.rs +++ b/crates/ide/src/status.rs @@ -38,6 +38,7 @@ pub(crate) fn status(db: &RootDatabase, file_id: Option) -> String { format_to!(buf, "{}\n", syntax_tree_stats(db)); format_to!(buf, "{} (macros)\n", macro_syntax_tree_stats(db)); format_to!(buf, "{} total\n", memory_usage()); + format_to!(buf, "\ncounts:\n{}", profile::countme::get_all()); if let Some(file_id) = file_id { format_to!(buf, "\nfile info:\n"); @@ -60,6 +61,7 @@ pub(crate) fn status(db: &RootDatabase, file_id: Option) -> String { None => format_to!(buf, "does not belong to any crate"), } } + buf } -- cgit v1.2.3