Interface CPUInfoOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
CPUInfo, CPUInfo.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCacheSize(String key) Cache sizes (in bytes), e.g.Deprecated.intCache sizes (in bytes), e.g.Cache sizes (in bytes), e.g.longgetCacheSizeOrDefault(String key, long defaultValue) Cache sizes (in bytes), e.g.longCache sizes (in bytes), e.g.What kind of cpu scaling is enabled on the host.What kind of cpu scaling is enabled on the host.Additional cpu information.Additional cpu information.doubleHow fast are these cpus?longint64 num_cores = 1;longint64 num_cores_allowed = 2;Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getNumCores
long getNumCores()int64 num_cores = 1;- Returns:
- The numCores.
-
getNumCoresAllowed
long getNumCoresAllowed()int64 num_cores_allowed = 2;- Returns:
- The numCoresAllowed.
-
getMhzPerCpu
double getMhzPerCpu()How fast are these cpus?
double mhz_per_cpu = 3;- Returns:
- The mhzPerCpu.
-
getCpuInfo
String getCpuInfo()Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Returns:
- The cpuInfo.
-
getCpuInfoBytes
ByteString getCpuInfoBytes()Additional cpu information. For example, Intel Ivybridge with HyperThreading (24 cores) dL1:32KB dL2:256KB dL3:30MB
string cpu_info = 4;- Returns:
- The bytes for cpuInfo.
-
getCpuGovernor
String getCpuGovernor()What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Returns:
- The cpuGovernor.
-
getCpuGovernorBytes
ByteString getCpuGovernorBytes()What kind of cpu scaling is enabled on the host. Examples include "performance", "ondemand", "conservative", "mixed".
string cpu_governor = 5;- Returns:
- The bytes for cpuGovernor.
-
getCacheSizeCount
int getCacheSizeCount()Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
containsCacheSize
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
getCacheSize
-
getCacheSizeMap
-
getCacheSizeOrDefault
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6; -
getCacheSizeOrThrow
Cache sizes (in bytes), e.g. "L2": 262144 (for 256KB)
map<string, int64> cache_size = 6;
-