pub struct RuntimeKernelSnapshot {Show 22 fields
pub id: SnapshotId,
pub version: SnapshotVersion,
pub timestamp: Time,
pub ready_queue_len: usize,
pub cancel_lane_len: usize,
pub finalize_lane_len: usize,
pub total_tasks: usize,
pub active_regions: usize,
pub cancel_streak_current: usize,
pub cancel_streak_limit: usize,
pub outstanding_obligations: usize,
pub obligation_leak_count: u64,
pub pending_io_registrations: usize,
pub active_timers: usize,
pub worker_count: usize,
pub workers_parked: usize,
pub blocking_threads_active: usize,
pub governor_enabled: bool,
pub adaptive_cancel_enabled: bool,
pub adaptive_epoch: u64,
pub registered_controllers: usize,
pub shadow_controllers: usize,
}Expand description
A point-in-time snapshot of observable runtime state for controllers.
Controllers receive this snapshot via their observe callback. They must
not cache snapshots across decision boundaries — each decision must use
the snapshot provided for that epoch.
Fields§
§id: SnapshotIdUnique identifier for this snapshot.
version: SnapshotVersionSchema version of this snapshot.
timestamp: TimeLogical time at which this snapshot was taken.
ready_queue_len: usizeNumber of tasks currently in the ready queue.
cancel_lane_len: usizeNumber of tasks in the cancel lane.
finalize_lane_len: usizeNumber of tasks in the finalize lane.
total_tasks: usizeTotal tasks currently tracked by the runtime.
active_regions: usizeNumber of active (non-closed) regions.
cancel_streak_current: usizeCurrent cancel-lane streak count within the active epoch.
cancel_streak_limit: usizeConfigured cancel-lane max streak.
outstanding_obligations: usizeNumber of outstanding (uncommitted) obligations.
obligation_leak_count: u64Cumulative obligation leak count since runtime start.
pending_io_registrations: usizeNumber of pending I/O registrations in the reactor.
active_timers: usizeNumber of active timers in the timer wheel.
worker_count: usizeNumber of worker threads configured.
workers_parked: usizeNumber of workers currently parked (idle).
blocking_threads_active: usizeNumber of active blocking pool threads.
governor_enabled: boolWhether the Lyapunov governor is enabled.
adaptive_cancel_enabled: boolWhether adaptive cancel-streak is enabled.
adaptive_epoch: u64Current adaptive cancel-streak epoch number (if adaptive enabled).
registered_controllers: usizeNumber of registered controllers.
shadow_controllers: usizeNumber of controllers in shadow mode.
Trait Implementations§
Source§impl Clone for RuntimeKernelSnapshot
impl Clone for RuntimeKernelSnapshot
Source§fn clone(&self) -> RuntimeKernelSnapshot
fn clone(&self) -> RuntimeKernelSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more