mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Use wait4 instead of getrusage
This commit is contained in:
1 parent
50232feb22
commit
ae0035ad56
9 files changed
+143
-98
No files matched your search
@@ -18,6 +18,12 @@ pub struct BenchmarkRun {
|
||||
|
||||
/// Time spent in kernel mode
|
||||
pub system_time: Second,
|
||||
|
||||
/// Maximum memory usage of the process, in bytes
|
||||
pub memory_usage_byte: u64,
|
||||
|
||||
/// Exit codes of the process
|
||||
pub exit_code: Option<i32>,
|
||||
}
|
||||
|
||||
use crate::benchmark::measurement::Measurements;
|
||||
@@ -45,13 +51,6 @@ pub struct BenchmarkResult {
|
||||
/// All run time measurements
|
||||
pub runs: Vec<BenchmarkRun>,
|
||||
|
||||
/// Maximum memory usage of the process, in bytes
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub memory_usage_byte: Option<Vec<u64>>,
|
||||
|
||||
/// Exit codes of all command invocations
|
||||
pub exit_codes: Vec<Option<i32>>,
|
||||
|
||||
/// Parameter values for this benchmark
|
||||
pub parameters: BTreeMap<String, Parameter>,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user