pub struct CacheInfo { /* private fields */ }Expand description
Info about L1 (I & D), L2, and L3 cache.
Implementations§
Source§impl CacheInfo
impl CacheInfo
Sourcepub fn l1i_cache_size(&self) -> usize
pub fn l1i_cache_size(&self) -> usize
Size of L1 instruction cache in byte.
Sourcepub fn l1d_cache_size(&self) -> usize
pub fn l1d_cache_size(&self) -> usize
Size of L1 data cache in byte.
Sourcepub fn l2_cache_size(&self) -> usize
pub fn l2_cache_size(&self) -> usize
Size of L2 in byte.
Sourcepub fn l3_cache_size(&self) -> usize
pub fn l3_cache_size(&self) -> usize
Size of L2 in byte.
Sourcepub fn l1i_cache_size_kb(&self) -> f64
pub fn l1i_cache_size_kb(&self) -> f64
Size of L1 instruction cache in kibibyte.
Sourcepub fn l1d_cache_size_kb(&self) -> f64
pub fn l1d_cache_size_kb(&self) -> f64
Size of L1 data cache in kibibyte.
Sourcepub fn l2_cache_size_kb(&self) -> f64
pub fn l2_cache_size_kb(&self) -> f64
Size of L2 cache in kibibyte.
Sourcepub fn l3_cache_size_kb(&self) -> f64
pub fn l3_cache_size_kb(&self) -> f64
Size of L3 cache in kibibyte.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnwindSafe for CacheInfo
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