pub struct TaskStat {
pub valid: bool,
pub state: u8,
pub core: u8,
pub mem_used: u64,
pub mem_limit: u64,
pub name_len: usize,
pub name: [u8; 128],
pub restart_count: u64,
pub queue_depth: u8,
pub run_ticks: u64,
pub uptime_secs: u64,
}Expand description
Snapshot of kernel task state for a single scheduler slot.
Fields§
§valid: boolTrue if the slot holds a live task.
state: u8Task state: 0=Ready, 1=Running, 2=BlockedOnRecv, 3=BlockedOnSend, 4=Dead.
core: u8Core the task is pinned to.
mem_used: u64Bytes dynamically allocated so far.
mem_limit: u64Maximum bytes the task may allocate.
name_len: usizeByte length of the name stored in name.
name: [u8; 128]Task name bytes (zero-padded to NAME_MAX bytes).
restart_count: u64Number of times this service has been restarted (0 on a fresh boot / first spawn, +1 per respawn). Saturating u64 - effectively unbounded.
queue_depth: u8Current inbound IPC queue depth (0-16).
run_ticks: u64Timer ticks spent as the running task on its core (monotonic since boot).
uptime_secs: u64Seconds since this service last (re)started - resets on restart. Per-service uptime.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskStat
impl RefUnwindSafe for TaskStat
impl Send for TaskStat
impl Sync for TaskStat
impl Unpin for TaskStat
impl UnsafeUnpin for TaskStat
impl UnwindSafe for TaskStat
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