pub struct DriveLoopProfileSnapshot {
pub runtime_tick_us: Distribution,
pub event_drain_us: Distribution,
pub publish_terminal_frames_us: Distribution,
pub remainder_us: Distribution,
pub iterations_per_sec: Distribution,
}Expand description
One snapshot of the drive loop’s own phase/rate readings – what
GET /metrics reports alongside NativeRuntime’s own
gate4agent_runtime_native::tick_profile::TickProfileSnapshot.
Fields§
§runtime_tick_us: Distribution§event_drain_us: Distribution§publish_terminal_frames_us: Distribution§remainder_us: Distribution§iterations_per_sec: DistributionActual iterations completed per wall-clock second, windowed over the
last SAMPLE_WINDOW seconds – the number the ~100/sec figure
implied by the loop’s sleep(Duration::from_millis(10)) needs
checked against, since that sleep only bounds the loop from below;
it says nothing about how many iterations the phases above actually
leave room for.
Trait Implementations§
Source§impl Clone for DriveLoopProfileSnapshot
impl Clone for DriveLoopProfileSnapshot
impl Copy for DriveLoopProfileSnapshot
Source§impl Debug for DriveLoopProfileSnapshot
impl Debug for DriveLoopProfileSnapshot
Source§impl Default for DriveLoopProfileSnapshot
impl Default for DriveLoopProfileSnapshot
impl Eq for DriveLoopProfileSnapshot
Source§impl PartialEq for DriveLoopProfileSnapshot
impl PartialEq for DriveLoopProfileSnapshot
impl StructuralPartialEq for DriveLoopProfileSnapshot
Auto Trait Implementations§
impl Freeze for DriveLoopProfileSnapshot
impl RefUnwindSafe for DriveLoopProfileSnapshot
impl Send for DriveLoopProfileSnapshot
impl Sync for DriveLoopProfileSnapshot
impl Unpin for DriveLoopProfileSnapshot
impl UnsafeUnpin for DriveLoopProfileSnapshot
impl UnwindSafe for DriveLoopProfileSnapshot
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