pub struct PerformanceStats { /* private fields */ }Expand description
Tracks performance statistics for network execution.
Implementations§
Source§impl PerformanceStats
impl PerformanceStats
Sourcepub fn set_start_time(&mut self, val: Instant) -> &mut Self
pub fn set_start_time(&mut self, val: Instant) -> &mut Self
The instant when the network execution started.
Sourcepub fn set_end_time(&mut self, val: Option<Instant>) -> &mut Self
pub fn set_end_time(&mut self, val: Option<Instant>) -> &mut Self
The instant when the network execution ended.
Sourcepub fn set_operators_executed(&mut self, val: usize) -> &mut Self
pub fn set_operators_executed(&mut self, val: usize) -> &mut Self
The total number of operators executed.
Sourcepub fn set_peak_memory_bytes(&mut self, val: usize) -> &mut Self
pub fn set_peak_memory_bytes(&mut self, val: usize) -> &mut Self
Running measure of peak memory usage in bytes.
Source§impl PerformanceStats
impl PerformanceStats
Sourcepub fn start_time(&self) -> &Instant
pub fn start_time(&self) -> &Instant
The instant when the network execution started.
Sourcepub fn operators_executed(&self) -> &usize
pub fn operators_executed(&self) -> &usize
The total number of operators executed.
Sourcepub fn peak_memory_bytes(&self) -> &usize
pub fn peak_memory_bytes(&self) -> &usize
Running measure of peak memory usage in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceStats
impl RefUnwindSafe for PerformanceStats
impl Send for PerformanceStats
impl Sync for PerformanceStats
impl Unpin for PerformanceStats
impl UnwindSafe for PerformanceStats
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