Package org.wildfly.common.cpu
Class CacheInfo
java.lang.Object
org.wildfly.common.cpu.CacheInfo
Deprecated, for removal: This API element is subject to removal in a future version.
A class which exposes any available cache line information for the current CPU.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheLevelInfogetCacheLevelInfo(int index) Deprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getCacheLevelInfo(int)instead.static intDeprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getLevelEntryCount()instead.static intDeprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getSmallestDataCacheLineSize()instead.static intDeprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getSmallestInstructionCacheLineSize()instead.static voidDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
CacheInfo
public CacheInfo()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getLevelEntryCount
Deprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getLevelEntryCount()instead.Get the number of CPU cache level entries. If no cache information could be gathered, 0 is returned.- Returns:
- the number of CPU cache levels, or 0 if unknown
-
getCacheLevelInfo
Deprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getCacheLevelInfo(int)instead.Get the CPU cache level information for a cache level. Theindexargument must be greater than zero and less than the number of levels returned bygetLevelEntryCount().- Parameters:
index- the cache level index- Returns:
- the CPU cache level information
-
getSmallestDataCacheLineSize
Deprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getSmallestDataCacheLineSize()instead.Get the smallest known data cache line size. If no cache line sizes are known, 0 is returned. Note that smaller cache lines may exist if one or more cache line sizes are unknown.- Returns:
- the smallest cache line size, or 0 if unknown
-
getSmallestInstructionCacheLineSize
Deprecated, for removal: This API element is subject to removal in a future version.UseCacheInfo.getSmallestInstructionCacheLineSize()instead.Get the smallest known instruction cache line size. If no cache line sizes are known, 0 is returned. Note that smaller cache lines may exist if one or more cache line sizes are unknown.- Returns:
- the smallest cache line size, or 0 if unknown
-
main
Deprecated, for removal: This API element is subject to removal in a future version.
-
CacheInfoinstead.