Merge #8286
8286: Include remaining memory in memory usage stats r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
1c936dcbe1
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ pub(crate) fn handle_analyzer_status(
|
|||
|
||||
pub(crate) fn handle_memory_usage(state: &mut GlobalState, _: ()) -> Result<String> {
|
||||
let _p = profile::span("handle_memory_usage");
|
||||
let mem = state.analysis_host.per_query_memory_usage();
|
||||
let mut mem = state.analysis_host.per_query_memory_usage();
|
||||
mem.push(("Remaining".into(), profile::memory_usage().allocated));
|
||||
|
||||
let mut out = String::new();
|
||||
for (name, bytes) in mem {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue