public class Cache
extends java.lang.Object
Cache
objects are exposed through a collection contained in
a CPUInfo
object.
Modifier and Type | Method and Description |
---|---|
int |
getAssociativity()
Returns the degree of associativity of this cache.
|
java.lang.String |
getAssociativityType()
Returns the type of associativity
("set" or "full") of this cache.
|
int |
getLevel()
Returns the level within the cache hierarchy of this cache.
|
int |
getLineSize()
Returns the line size in bytes of this cache.
|
int |
getSize()
Returns the size of this cache;
the units could be either kilobytes or KuOps,
the
getSizeUnits method can be used to find out the units. |
java.lang.String |
getSizeUnits()
Returns the units of the size of this cache,
one of "KB" or "KuOps".
|
java.lang.String |
getType()
Returns the type ("instruction", "data",
"unified") within the cache hierarchy of this cache.
|
java.lang.String |
toString()
Returns a string representation of this cache.
|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
public int getLevel()
public int getSize()
getSizeUnits
method can be used to find out the units.public java.lang.String getSizeUnits()
public int getLineSize()
public int getAssociativity()
public java.lang.String getAssociativityType()