mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
Include remaining memory in memory usage stats
This commit is contained in:
parent
25201b2dad
commit
0a8274dd46
@ -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…
Reference in New Issue
Block a user