public class MachineInfo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
getCPUCount()
Returns the number of CPUs on this machine.
|
CPUInfo |
getCPUInfo()
Returns a
CPUInfo object
describing the characteristics of the CPUs on this machine. |
float |
getMemorySize()
Returns the amount of installed memory on this machine,
in units of megabytes (MB).
|
float |
getSysPageSize()
Returns the operating system (OS) page size, in units
of kilobytes (KB).
|
java.lang.String |
toString()
Returns a string representation of this machine information object,
including the number of CPUs, total memory size, system page size,
and the detailed information of the CPUs.
|
public java.lang.String toString()
toString in class java.lang.Objectpublic CPUInfo getCPUInfo()
CPUInfo object
describing the characteristics of the CPUs on this machine.public int getCPUCount()
public float getMemorySize()
public float getSysPageSize()