public class CPUInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBrand()
Returns the processor brand.
|
int |
getCacheLevels()
Returns the levels of caches in this processor.
|
java.util.List<java.util.List<Cache>> |
getCaches()
Returns the list of list of caches in this processor.
|
float |
getClockSpeed()
Returns the clock frequency in megahertz.
|
java.lang.String |
getCPUIDInfo()
Returns the processor CPUID info.
|
int |
getRevision()
Returns the revision (also referred to as "stepping").
|
java.util.List<java.util.List<TLB>> |
getTLBs()
Returns the list of list of translation lookaside buffers (TLBs)
in this processor.
|
int |
getTotalCacheSizeOfLevel(int level)
Returns the total cache size of the given cache level in this processor,
in units of kilobytes (KB), returns 0 if the given cache level is
less than 1, or larger than the maximum level in this processor.
|
java.lang.String |
getVendor()
Returns the CPU manufacturer.
|
java.lang.String |
toString()
Returns a string representation of this CPU,
including the list of caches and TLBs.
|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getVendor()
public java.lang.String getBrand()
public java.lang.String getCPUIDInfo()
public int getRevision()
public float getClockSpeed()
public int getCacheLevels()
public java.util.List<java.util.List<Cache>> getCaches()
public java.util.List<java.util.List<TLB>> getTLBs()
public int getTotalCacheSizeOfLevel(int level)