Files
hyperfine/src/benchmark/measurement.rs
T

22 lines
529 B
Rust
Raw Normal View History

use std::process::ExitStatus;
2022-02-20 13:44:34 +01:00
use crate::util::units::Second;
/// Performance measurements and exit status from running a single command
2022-02-20 13:44:34 +01:00
#[derive(Debug, Default, Copy, Clone)]
pub struct Measurement {
2022-02-20 13:44:34 +01:00
/// Wall clock time
pub time_real: Second,
/// Time spent in user mode
pub time_user: Second,
/// Time spent in kernel mode
pub time_system: Second,
2024-06-23 13:29:05 +02:00
/// Maximum amount of memory used, in bytes
pub memory_usage_byte: u64,
/// The exit status of the process
pub status: ExitStatus,
2022-02-20 13:44:34 +01:00
}