pub struct RunResult {Show 14 fields
pub wall_ms: u64,
pub exit_code: i32,
pub timed_out: bool,
pub cpu_ms: Option<u64>,
pub page_faults: Option<u64>,
pub ctx_switches: Option<u64>,
pub max_rss_kb: Option<u64>,
pub io_read_bytes: Option<u64>,
pub io_write_bytes: Option<u64>,
pub network_packets: Option<u64>,
pub energy_uj: Option<u64>,
pub binary_bytes: Option<u64>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
Result of a single execution.
Fields§
§wall_ms: u64§exit_code: i32§timed_out: bool§cpu_ms: Option<u64>CPU time (user + system) in milliseconds. Collected on Unix via rusage and best-effort on Windows.
page_faults: Option<u64>Page faults. On Unix: major page faults from rusage. On Windows: total page faults from GetProcessMemoryInfo (PageFaultCount).
ctx_switches: Option<u64>Voluntary + involuntary context switches (Unix only; None on Windows).
max_rss_kb: Option<u64>Peak resident set size in KB. Collected on Unix via rusage and best-effort on Windows.
io_read_bytes: Option<u64>Bytes read from disk (best-effort).
io_write_bytes: Option<u64>Bytes written to disk (best-effort).
network_packets: Option<u64>Total network packets (best-effort).
energy_uj: Option<u64>CPU energy used in microjoules (RAPL on Linux).
binary_bytes: Option<u64>Size of executed binary in bytes (best-effort).
stdout: Vec<u8>§stderr: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more