pub struct TaskStats {
pub total: usize,
pub running: usize,
pub threads: usize,
pub kernel_threads: usize,
}Expand description
Process-table counts, so meters can summarise processes without reaching into the table themselves.
htop prints Tasks: 472, 1664 thr, 0 kthr; 1 running.
Fields§
§total: usizeProcesses, excluding additional thread rows.
running: usizeRunning tasks; on macOS this is the running thread count, capped at CPUs.
threads: usizeUserland threads, including main threads.
kernel_threads: usizeKernel threads reported separately by the backend (always 0 on macOS).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskStats
impl RefUnwindSafe for TaskStats
impl Send for TaskStats
impl Sync for TaskStats
impl Unpin for TaskStats
impl UnsafeUnpin for TaskStats
impl UnwindSafe for TaskStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more