]> git.lizzy.rs Git - rust.git/commitdiff
Make default memory stats less verbose
authorAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 10 Jan 2021 17:58:02 +0000 (20:58 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Sun, 10 Jan 2021 17:58:02 +0000 (20:58 +0300)
crates/rust-analyzer/src/cli/analysis_stats.rs

index 9445aec074d411294abde492eb5589e526d2a511..30811bbbfa58fb44c3ae144ccf171895fc348add 100644 (file)
@@ -302,7 +302,7 @@ pub fn run(self, verbosity: Verbosity) -> Result<()> {
             report_metric("total memory", memory.allocated.megabytes() as u64, "MB");
         }
 
-        if self.memory_usage {
+        if self.memory_usage && verbosity.is_verbose() {
             print_memory_usage(host, vfs);
         }