pub struct StateMeasurement {
pub state: RunState,
pub elapsed_ns: u64,
pub cpu_time_ms: Option<u64>,
pub aggregate_cpu_milli_percent: Option<u64>,
pub resident_start_bytes: Option<u64>,
pub resident_end_bytes: Option<u64>,
pub threads_start: Option<u64>,
pub threads_end: Option<u64>,
}Expand description
One completed macro state with its wall time and boundary resource deltas.
Fields§
§state: RunState§elapsed_ns: u64§cpu_time_ms: Option<u64>§aggregate_cpu_milli_percent: Option<u64>§resident_start_bytes: Option<u64>§resident_end_bytes: Option<u64>§threads_start: Option<u64>§threads_end: Option<u64>Trait Implementations§
Source§impl Clone for StateMeasurement
impl Clone for StateMeasurement
Source§fn clone(&self) -> StateMeasurement
fn clone(&self) -> StateMeasurement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateMeasurement
impl Debug for StateMeasurement
Source§impl<'de> Deserialize<'de> for StateMeasurement
impl<'de> Deserialize<'de> for StateMeasurement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StateMeasurement
impl PartialEq for StateMeasurement
Source§impl Serialize for StateMeasurement
impl Serialize for StateMeasurement
impl StructuralPartialEq for StateMeasurement
Auto Trait Implementations§
impl Freeze for StateMeasurement
impl RefUnwindSafe for StateMeasurement
impl Send for StateMeasurement
impl Sync for StateMeasurement
impl Unpin for StateMeasurement
impl UnsafeUnpin for StateMeasurement
impl UnwindSafe for StateMeasurement
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