pub struct ThreadReport {
pub cpu_usage: f32,
pub system_cpu: f32,
pub user_cpu: f32,
}
Expand description
Report of CPU usage by single thread
Fields§
§cpu_usage: f32
Threads’ own CPU usage. 100% is a single core
system_cpu: f32
Threads’ own CPU usage in kernel space. 100% is a single core
user_cpu: f32
Threads’ own CPU usage in user space. 100% is a single core
Trait Implementations§
Source§impl Debug for ThreadReport
impl Debug for ThreadReport
Auto Trait Implementations§
impl Freeze for ThreadReport
impl RefUnwindSafe for ThreadReport
impl Send for ThreadReport
impl Sync for ThreadReport
impl Unpin for ThreadReport
impl UnwindSafe for ThreadReport
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