bencher: pretty-print RSS

This commit is contained in:
Joakim Frostegård 2024-01-01 17:32:55 +01:00
parent 3d9a35d376
commit 98ce4ca019
5 changed files with 35 additions and 7 deletions

View file

@ -1,5 +1,6 @@
use std::rc::Rc;
use humanize_bytes::humanize_bytes_binary;
use indexmap::IndexMap;
use num_format::{Locale, ToFormattedString};
@ -207,8 +208,8 @@ impl LoadTestRunResults {
r.tracker_process_stats.avg_cpu_utilization,
);
println!(
"- Peak tracker RSS: {} kB",
r.tracker_process_stats.peak_rss_kb
"- Peak tracker RSS: {}",
humanize_bytes_binary!(r.tracker_process_stats.peak_rss_bytes)
);
LoadTestRunResults::Success(LoadTestRunResultsSuccess {