pub struct ProcessThreads {
pub usage: ProcessUsage,
pub threads: Vec<ThreadSample>,
}Expand description
A ProcessUsage together with the threads it was summed from.
Fields§
§usage: ProcessUsage§threads: Vec<ThreadSample>Live threads of this process. On Windows usage.wakeups_total is exactly the sum of their
wakeups (see ProcessThreads::thread_wakeups_sum).
Implementations§
Source§impl ProcessThreads
impl ProcessThreads
Sourcepub fn thread_wakeups_sum(&self) -> Option<u64>
pub fn thread_wakeups_sum(&self) -> Option<u64>
Sum of the per-thread wake-up counters; None when any thread lacks one.
Trait Implementations§
Source§impl Clone for ProcessThreads
impl Clone for ProcessThreads
Source§impl Debug for ProcessThreads
impl Debug for ProcessThreads
Source§impl PartialEq for ProcessThreads
impl PartialEq for ProcessThreads
impl StructuralPartialEq for ProcessThreads
Auto Trait Implementations§
impl Freeze for ProcessThreads
impl RefUnwindSafe for ProcessThreads
impl Send for ProcessThreads
impl Sync for ProcessThreads
impl Unpin for ProcessThreads
impl UnsafeUnpin for ProcessThreads
impl UnwindSafe for ProcessThreads
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