| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final CacheType |
| Access | Constructor and Description |
|---|---|
| pack-priv | CacheLevelInfo(final int cacheLevel, final CacheType cacheType, final int cacheLevelSizeKB, final int cacheLineSize)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | Returns: the size of this cache level in kilobytes, or 0 if unknownGet the size of this cache level in kilobytes. |
| public int | Returns: the cache line size in bytes, or 0 if unknownGet the cache line size in bytes. |
| public CacheType |
| cacheLevel | back to summary |
|---|---|
| private final int cacheLevel | |
| cacheLevelSizeKB | back to summary |
|---|---|
| private final int cacheLevelSizeKB | |
| cacheLineSize | back to summary |
|---|---|
| private final int cacheLineSize | |
| cacheType | back to summary |
|---|---|
| private final CacheType cacheType | |
| CacheLevelInfo | back to summary |
|---|---|
| pack-priv CacheLevelInfo(final int cacheLevel, final CacheType cacheType, final int cacheLevelSizeKB, final int cacheLineSize) | |
| getCacheLevel | back to summary |
|---|---|
| public int getCacheLevel() Get the level index. For example, the level of L1 cache will be "1", L2 will be "2", etc. If the level is not known, 0 is returned.
| |
| getCacheLevelSizeKB | back to summary |
|---|---|
| public int getCacheLevelSizeKB() Get the size of this cache level in kilobytes. If the size is unknown, 0 is returned.
| |
| getCacheLineSize | back to summary |
|---|---|
| public int getCacheLineSize() Get the cache line size in bytes. If the size is unknown, 0 is returned.
| |
| getCacheType | back to summary |
|---|---|
| public CacheType getCacheType() Get the type of cache. If the type is unknown,
| |