Include countme crate to count important data structures.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
//! errors.
|
||||
|
||||
use std::{
|
||||
env,
|
||||
path::PathBuf,
|
||||
time::{SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
@@ -295,6 +296,10 @@ impl AnalysisStatsCmd {
|
||||
report_metric("total memory", memory.allocated.megabytes() as u64, "MB");
|
||||
}
|
||||
|
||||
if env::var("RA_COUNT").is_ok() {
|
||||
eprintln!("{}", profile::countme::get_all());
|
||||
}
|
||||
|
||||
if self.memory_usage && verbosity.is_verbose() {
|
||||
print_memory_usage(host, vfs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user