pub struct SchedulerTickCpuTime { /* private fields */ }Expand description
IRQ-safe tick-sampled user/system CPU time for one scheduler thread.
The object is retained by both the OS task and super::ThreadExtension.
Only the current CPU samples it from the periodic tick’s saved trap origin.
Implementations§
Source§impl SchedulerTickCpuTime
impl SchedulerTickCpuTime
Sourcepub fn snapshot(&self) -> SchedulerTickCpuTimeSnapshot
pub fn snapshot(&self) -> SchedulerTickCpuTimeSnapshot
Returns the raw tick-accounted totals.
Trait Implementations§
Source§impl Debug for SchedulerTickCpuTime
impl Debug for SchedulerTickCpuTime
Auto Trait Implementations§
impl !Freeze for SchedulerTickCpuTime
impl RefUnwindSafe for SchedulerTickCpuTime
impl Send for SchedulerTickCpuTime
impl Sync for SchedulerTickCpuTime
impl Unpin for SchedulerTickCpuTime
impl UnsafeUnpin for SchedulerTickCpuTime
impl UnwindSafe for SchedulerTickCpuTime
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