pub struct PerfCounters {
pub syscalls: u64,
pub context_switches: u64,
pub interrupts: u64,
pub page_faults: u64,
pub ipi_sent: u64,
pub cpu_cycles: u64,
}Expand description
Performance counter data.
Fields§
§syscalls: u64Syscall count.
context_switches: u64Context switches.
interrupts: u64Interrupts handled.
page_faults: u64Page faults.
ipi_sent: u64IPI messages sent.
cpu_cycles: u64Total CPU cycles (if available).
Trait Implementations§
Source§impl Clone for PerfCounters
impl Clone for PerfCounters
Source§fn clone(&self) -> PerfCounters
fn clone(&self) -> PerfCounters
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 PerfCounters
impl Debug for PerfCounters
Source§impl Default for PerfCounters
impl Default for PerfCounters
Source§fn default() -> PerfCounters
fn default() -> PerfCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerfCounters
impl RefUnwindSafe for PerfCounters
impl Send for PerfCounters
impl Sync for PerfCounters
impl Unpin for PerfCounters
impl UnsafeUnpin for PerfCounters
impl UnwindSafe for PerfCounters
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