pub struct ThreadStats {
pub runtime_us: u64,
pub cpu_percent_x100: u32,
}Expand description
Runtime statistics for a thread.
Fields§
§runtime_us: u64Total CPU time consumed by this thread in microseconds.
cpu_percent_x100: u32CPU utilization as a percentage multiplied by 100 (e.g. 5025 = 50.25%).
Trait Implementations§
Source§impl Clone for ThreadStats
impl Clone for ThreadStats
Source§fn clone(&self) -> ThreadStats
fn clone(&self) -> ThreadStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadStats
impl Debug for ThreadStats
impl Copy for ThreadStats
Auto Trait Implementations§
impl Freeze for ThreadStats
impl RefUnwindSafe for ThreadStats
impl Send for ThreadStats
impl Sync for ThreadStats
impl Unpin for ThreadStats
impl UnwindSafe for ThreadStats
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