Struct raw_cpuid::PerformanceMonitoringInfo
source · [−]pub struct PerformanceMonitoringInfo { /* private fields */ }
Implementations
sourceimpl PerformanceMonitoringInfo
impl PerformanceMonitoringInfo
sourcepub fn version_id(&self) -> u8
pub fn version_id(&self) -> u8
Version ID of architectural performance monitoring. (Bits 07 - 00)
sourcepub fn number_of_counters(&self) -> u8
pub fn number_of_counters(&self) -> u8
Number of general-purpose performance monitoring counter per logical processor. (Bits 15- 08)
sourcepub fn counter_bit_width(&self) -> u8
pub fn counter_bit_width(&self) -> u8
Bit width of general-purpose, performance monitoring counter. (Bits 23 - 16)
sourcepub fn ebx_length(&self) -> u8
pub fn ebx_length(&self) -> u8
Length of EBX bit vector to enumerate architectural performance monitoring events. (Bits 31 - 24)
sourcepub fn fixed_function_counters(&self) -> u8
pub fn fixed_function_counters(&self) -> u8
Number of fixed-function performance counters (if Version ID > 1). (Bits 04 - 00)
sourcepub fn fixed_function_counters_bit_width(&self) -> u8
pub fn fixed_function_counters_bit_width(&self) -> u8
Bit width of fixed-function performance counters (if Version ID > 1). (Bits 12- 05)
sourcepub fn has_any_thread_deprecation(&self) -> bool
pub fn has_any_thread_deprecation(&self) -> bool
AnyThread deprecation
Core cycle event not available if 1.
Instruction retired event not available if 1.
Reference cycles event not available if 1.
Last-level cache reference event not available if 1.
Last-level cache misses event not available if 1.
Branch instruction retired event not available if 1.
Branch mispredict retired event not available if 1.
Trait Implementations
sourceimpl Debug for PerformanceMonitoringInfo
impl Debug for PerformanceMonitoringInfo
sourceimpl Default for PerformanceMonitoringInfo
impl Default for PerformanceMonitoringInfo
sourcefn default() -> PerformanceMonitoringInfo
fn default() -> PerformanceMonitoringInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PerformanceMonitoringInfo
impl Send for PerformanceMonitoringInfo
impl Sync for PerformanceMonitoringInfo
impl Unpin for PerformanceMonitoringInfo
impl UnwindSafe for PerformanceMonitoringInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more