ProcessorCache

interface ProcessorCache

ProcessorCache interface represents a processor's cache with its properties like level, associativity, line size, cache size, and cache type.

This interface provides the details about the cache hierarchy and its characteristics, which are useful for system-level performance analysis and optimization.

Author

N7ghtm4r3

Inheritors

ProcessorCacheImpl

Properties

Link copied to clipboard
abstract val associativity: Byte

associativity the associativity of the cache (e.g., direct-mapped, 2-way, 4-way)

Link copied to clipboard
abstract val cacheSize: Int

cacheSize the total size of the cache in bytes

Link copied to clipboard
abstract val level: Byte

level the level of the processor cache (e.g., L1, L2, L3)

Link copied to clipboard
abstract val lineSize: Short

lineSize the size of a cache line in bytes

Link copied to clipboard
abstract val type: CacheType

type the type of the cache (e.g., unified, instruction, data, or trace)