add some usage stats output on the mutex maps
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
271f720286
commit
2a304c2b6c
3 changed files with 26 additions and 0 deletions
|
@ -2,6 +2,7 @@ mod data;
|
|||
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
fmt::Write,
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
|
@ -40,6 +41,13 @@ impl crate::Service for Service {
|
|||
}))
|
||||
}
|
||||
|
||||
fn memory_usage(&self, out: &mut dyn Write) -> Result<()> {
|
||||
let mutex = self.mutex.len();
|
||||
writeln!(out, "state_mutex: {mutex}")?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn name(&self) -> &str { crate::service::make_name(std::module_path!()) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue