Enum perfcnt::linux::SoftwareEventType
source · [−]pub enum SoftwareEventType {
CpuClock,
TaskClock,
PageFaults,
ContextSwitches,
CpuMigrations,
PageFaultsMin,
PageFaultsMaj,
AlignmentFaults,
EmulationFaults,
}
Variants
CpuClock
This reports the CPU clock, a high-resolution per-CPU timer.
TaskClock
This reports a clock count specific to the task that is running.
PageFaults
This reports the number of page faults.
ContextSwitches
This counts context switches.
Until Linux 2.6.34, these were all reported as user-space events, after that they are reported as happening in the kernel.
CpuMigrations
This reports the number of times the process has migrated to a new CPU.
PageFaultsMin
This counts the number of minor page faults. These did not require disk I/O to handle.
PageFaultsMaj
This counts the number of major page faults. These required disk I/O to handle.
AlignmentFaults
This counts the number of alignment faults.
These happen when unaligned memory accesses happen; the kernel can handle these but it reduces performance. This happens only on some architectures (never on x86).
(Since Linux 2.6.33)
EmulationFaults
This counts the number of emulation faults. The kernel sometimes traps on unimplemented instructions and emulates them for user space. This can negatively impact performance.
(Since Linux 2.6.33)
Trait Implementations
sourceimpl Clone for SoftwareEventType
impl Clone for SoftwareEventType
sourcefn clone(&self) -> SoftwareEventType
fn clone(&self) -> SoftwareEventType
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 SoftwareEventType
impl Debug for SoftwareEventType
impl Copy for SoftwareEventType
Auto Trait Implementations
impl RefUnwindSafe for SoftwareEventType
impl Send for SoftwareEventType
impl Sync for SoftwareEventType
impl Unpin for SoftwareEventType
impl UnwindSafe for SoftwareEventType
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