pub struct ThreadUsage {
pub cpu_usage: f32,
pub cpu_usage_with_children: f32,
}Expand description
CPU usage of a single thread
Fields§
§cpu_usage: f32Thread’s own CPU usage. 100% is a single core
cpu_usage_with_children: f32Thread’s CPU usage with its awaited children. 100% is a single core
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreadUsage
impl RefUnwindSafe for ThreadUsage
impl Send for ThreadUsage
impl Sync for ThreadUsage
impl Unpin for ThreadUsage
impl UnwindSafe for ThreadUsage
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