Struct CacheDomain

Struct Documentation

struct CacheDomain

One reported cache and the eligible CPUs sharing it; no allocation/residency guarantee.

Public Members

unsigned int id = 0

Provider-defined ID local to this snapshot, not an index or persistent hardware key.

unsigned int level = 0

Positive reported cache level, such as 1 for L1; zero rejects during pool preparation.

CacheType type = CacheType::Unified

Instruction/data classification of this cache.

std::optional<std::uint64_t> capacity_bytes

Positive reported total cache capacity in bytes, or absent when unavailable.

std::optional<unsigned int> line_bytes

Positive reported cache-line size in bytes, or absent when unavailable.

std::vector<unsigned int> cpus

Eligible OS logical CPU IDs belonging to this domain; pool preparation sorts/deduplicates them.