pub struct LaneTelemetry {
pub lane_stats: HashMap<PrecisionLane, LaneStats>,
pub current_lane: PrecisionLane,
pub transitions: u64,
pub session_duration_secs: f64,
/* private fields */
}Expand description
Comprehensive telemetry for all precision lanes
Fields§
§lane_stats: HashMap<PrecisionLane, LaneStats>Per-lane statistics
current_lane: PrecisionLaneCurrent lane
transitions: u64Total lane transitions
session_duration_secs: f64Session duration (seconds)
Implementations§
Source§impl LaneTelemetry
impl LaneTelemetry
Sourcepub fn new(initial_lane: PrecisionLane) -> Self
pub fn new(initial_lane: PrecisionLane) -> Self
Create new telemetry tracker
Sourcepub fn start_session(&mut self)
pub fn start_session(&mut self)
Start a new session
Sourcepub fn record_operation(
&mut self,
duration: Duration,
bytes: u64,
active_set_size: usize,
)
pub fn record_operation( &mut self, duration: Duration, bytes: u64, active_set_size: usize, )
Record an operation in the current lane
Sourcepub fn record_transition(
&mut self,
from: PrecisionLane,
to: PrecisionLane,
reason: TransitionReason,
)
pub fn record_transition( &mut self, from: PrecisionLane, to: PrecisionLane, reason: TransitionReason, )
Record a lane transition
Sourcepub fn record_error(&mut self)
pub fn record_error(&mut self)
Record an error in the current lane
Sourcepub fn get_lane_stats(&self, lane: PrecisionLane) -> Option<&LaneStats>
pub fn get_lane_stats(&self, lane: PrecisionLane) -> Option<&LaneStats>
Get statistics for a specific lane
Sourcepub fn total_operations(&self) -> u64
pub fn total_operations(&self) -> u64
Get total operations across all lanes
Sourcepub fn total_errors(&self) -> u64
pub fn total_errors(&self) -> u64
Get total errors across all lanes
Sourcepub fn lane_distribution(&self) -> HashMap<PrecisionLane, f32>
pub fn lane_distribution(&self) -> HashMap<PrecisionLane, f32>
Get lane usage distribution (percentage)
Sourcepub fn transition_history(&self) -> &[LaneTransition]
pub fn transition_history(&self) -> &[LaneTransition]
Get transition history
Sourcepub fn summary_report(&self) -> TelemetrySummary
pub fn summary_report(&self) -> TelemetrySummary
Generate summary report
Trait Implementations§
Source§impl Clone for LaneTelemetry
impl Clone for LaneTelemetry
Source§fn clone(&self) -> LaneTelemetry
fn clone(&self) -> LaneTelemetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LaneTelemetry
impl RefUnwindSafe for LaneTelemetry
impl Send for LaneTelemetry
impl Sync for LaneTelemetry
impl Unpin for LaneTelemetry
impl UnwindSafe for LaneTelemetry
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