Enum perfcnt::linux::HardwareEventType
source · [−]pub enum HardwareEventType {
CPUCycles,
Instructions,
CacheReferences,
CacheMisses,
BranchInstructions,
BranchMisses,
BusCycles,
StalledCyclesFrontend,
StalledCyclesBackend,
RefCPUCycles,
}
Variants
CPUCycles
Total cycles. Be wary of what happens during CPU frequency scaling.
Instructions
Retired instructions. Be careful, these can be affected by various issues, most notably hardware interrupt counts.
CacheReferences
Cache accesses. Usually this indicates Last Level Cache accesses but this may vary depending on your CPU. This may include prefetches and coherency messages; again this depends on the design of your CPU.
CacheMisses
Cache misses. Usually this indicates Last Level Cache misses; this is intended to be used in conjunction with the [CacheReferences] event to calculate cache miss rates.
BranchInstructions
Retired branch instructions. Prior to Linux 2.6.34, this used the wrong event on AMD processors.
BranchMisses
Mispredicted branch instructions.
BusCycles
Bus cycles, which can be different from total cycles.
StalledCyclesFrontend
Stalled cycles during issue. (Since Linux 3.0)
StalledCyclesBackend
Stalled cycles during retirement. (Since Linux 3.0)
RefCPUCycles
Total cycles; not affected by CPU frequency scaling. (Since Linux 3.3)
Trait Implementations
sourceimpl Clone for HardwareEventType
impl Clone for HardwareEventType
sourcefn clone(&self) -> HardwareEventType
fn clone(&self) -> HardwareEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HardwareEventType
impl Debug for HardwareEventType
impl Copy for HardwareEventType
Auto Trait Implementations
impl RefUnwindSafe for HardwareEventType
impl Send for HardwareEventType
impl Sync for HardwareEventType
impl Unpin for HardwareEventType
impl UnwindSafe for HardwareEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more