pub struct CacheTopology { /* private fields */ }Expand description
Complete cache topology for the current CPU
Implementations§
Source§impl CacheTopology
impl CacheTopology
Sourcepub fn cache_count(&self) -> usize
pub fn cache_count(&self) -> usize
Get the number of detected cache levels
Sourcepub fn last_level_cache(&self) -> Option<&CacheInfo>
pub fn last_level_cache(&self) -> Option<&CacheInfo>
Find the last-level cache (LLC), typically L3 or L2
Sourcepub fn num_colors(&self) -> u16
pub fn num_colors(&self) -> u16
Get the number of cache colors