pub struct LaneStats {
pub operations: u64,
pub total_time_ns: u64,
pub avg_time_ns: u64,
pub peak_time_ns: u64,
pub bytes_processed: u64,
pub avg_active_set_size: f32,
pub errors: u64,
pub escalations: u64,
pub demotions: u64,
}Expand description
Statistics for a single precision lane
Fields§
§operations: u64Total operations in this lane
total_time_ns: u64Total time spent in this lane (nanoseconds)
avg_time_ns: u64Average operation time (nanoseconds)
peak_time_ns: u64Peak operation time (nanoseconds)
bytes_processed: u64Total bytes processed
avg_active_set_size: f32Average active set size
errors: u64Error count
escalations: u64Escalations from this lane
demotions: u64Demotions to this lane
Implementations§
Source§impl LaneStats
impl LaneStats
Sourcepub fn record_operation(
&mut self,
duration_ns: u64,
bytes: u64,
active_set_size: usize,
)
pub fn record_operation( &mut self, duration_ns: u64, bytes: u64, active_set_size: usize, )
Record a new operation
Sourcepub fn record_error(&mut self)
pub fn record_error(&mut self)
Record an error
Sourcepub fn record_escalation(&mut self)
pub fn record_escalation(&mut self)
Record an escalation from this lane
Sourcepub fn record_demotion(&mut self)
pub fn record_demotion(&mut self)
Record a demotion to this lane
Sourcepub fn throughput_bps(&self) -> f64
pub fn throughput_bps(&self) -> f64
Get throughput in bytes per second
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LaneStats
impl<'de> Deserialize<'de> for LaneStats
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
Auto Trait Implementations§
impl Freeze for LaneStats
impl RefUnwindSafe for LaneStats
impl Send for LaneStats
impl Sync for LaneStats
impl Unpin for LaneStats
impl UnwindSafe for LaneStats
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