#[repr(u32)]pub enum HardwareEvent {
CpuCycles = 0,
Instructions = 1,
CacheReferences = 2,
CacheMisses = 3,
BranchInstructions = 4,
BranchMisses = 5,
BusCycles = 6,
StalledCyclesFrontend = 7,
StalledCyclesBackend = 8,
RefCpuCycles = 9,
}Expand description
The “generalized” hardware CPU events provided by the kernel.
Variants§
CpuCycles = 0
The total CPU cycles.
Instructions = 1
Number of retired instructions.
CacheReferences = 2
Number of cache accesses.
CacheMisses = 3
Number of cache misses.
BranchInstructions = 4
Number of retired branch instructions.
BranchMisses = 5
Number of mispredicted branch instructions.
BusCycles = 6
Number of bus cycles.
StalledCyclesFrontend = 7
Number of stalled cycles during issue.
StalledCyclesBackend = 8
Number of stalled cycles during retirement.
RefCpuCycles = 9
The total CPU cycles, which is not affected by CPU frequency scaling.
Trait Implementations§
Source§impl Clone for HardwareEvent
impl Clone for HardwareEvent
Source§fn clone(&self) -> HardwareEvent
fn clone(&self) -> HardwareEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HardwareEvent
Auto Trait Implementations§
impl Freeze for HardwareEvent
impl RefUnwindSafe for HardwareEvent
impl Send for HardwareEvent
impl Sync for HardwareEvent
impl Unpin for HardwareEvent
impl UnsafeUnpin for HardwareEvent
impl UnwindSafe for HardwareEvent
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