[−][src]Function cache_size::cache_size
pub fn cache_size(level: u8, cache_type: CacheType) -> Option<usize>
Returns the total size in bytes of level cache with type cache_type.
The only possibilities for this returning None are if the system does not support cache
parameters, in which case get_cache_parameters() will
fail, or if the selected cache level and/or type does not exist.
This is computed as associativity * line_size * sets, and if there are multiple caches
available, it returns the size of the smallest cache.