1 unstable release
0.6.1 | Jun 24, 2024 |
---|
#323 in #size
16KB
184 lines
cache-size
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!
Note that the library will still compile and work on non x86 architectures, but
the result of all the cache queries will be None
.
Check the Intel 64 and IA-32 Architectures Software Developers Manual
for more information on the CPUID
instruction.
Dependencies
~615KB
~11K SLoC