Crate yep_cache_line_size

Crate yep_cache_line_size 

Source
Expand description

A library to quickly get the size and line size of your CPU caches.

Currently this crate only supports x86 CPUs, since it relies on the CPUID instruction, via the raw_cpuid crate. It is a goal to support other architectures; PRs are welcome!

Check the Intel 64 and IA-32 Architectures Software Developers Manual for more information on the CPUID instruction.

Enums§

CacheInfoError
Errors that can occur while querying cache metadata.
CacheLevel
Identifier for the cache hierarchy level being queried.
CacheType
Common data structures representing CPU cache metadata.

Functions§

get_cache_line_size
Returns the line size in bytes of level cache with type cache_type.