java.lang.Object
oshi.hardware.CentralProcessor.ProcessorCache
- Enclosing interface:
- CentralProcessor
A class representing CPU Cache Memory.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of cache. -
Constructor Summary
ConstructorDescriptionProcessorCache
(byte level, byte associativity, short lineSize, int cacheSize, CentralProcessor.ProcessorCache.Type type) ProcessorCache
(int level, int associativity, int lineSize, long cacheSize, CentralProcessor.ProcessorCache.Type type) -
Method Summary
-
Constructor Details
-
ProcessorCache
public ProcessorCache(byte level, byte associativity, short lineSize, int cacheSize, CentralProcessor.ProcessorCache.Type type) -
ProcessorCache
public ProcessorCache(int level, int associativity, int lineSize, long cacheSize, CentralProcessor.ProcessorCache.Type type)
-
-
Method Details
-
getLevel
public byte getLevel()The cache level. This member can be 1 (L1), 2 (L2), 3 (L3), or 4 (L4).- Returns:
- the level
-
getAssociativity
public byte getAssociativity()The cache associativity. If this member is0xFF
, the cache is fully associative.- Returns:
- the associativity
-
getLineSize
public short getLineSize()The cache line size, in bytes.- Returns:
- the line size
-
getCacheSize
public int getCacheSize()The cache size, in bytes.- Returns:
- the cache size
-
getType
The cache type.- Returns:
- the type
-
toString
-
equals
-
hashCode
public int hashCode()
-