public final class MemInfoReader extends Object
Constructor and Description |
---|
MemInfoReader() |
Modifier and Type | Method and Description |
---|---|
long |
getCachedSize()
Amount of RAM that the kernel is being used for caches, not counting caches
that are mapped in to processes.
|
long |
getCachedSizeKb()
Amount of RAM that the kernel is being used for caches, not counting caches
that are mapped in to processes.
|
long |
getFreeSize()
Amount of RAM that is not being used for anything.
|
long |
getFreeSizeKb()
Amount of RAM that is not being used for anything.
|
long |
getKernelUsedSize()
Amount of RAM that is in use by the kernel for actual allocations.
|
long |
getKernelUsedSizeKb()
Amount of RAM that is in use by the kernel for actual allocations.
|
long[] |
getRawInfo() |
long |
getSwapFreeSizeKb() |
long |
getSwapTotalSizeKb() |
long |
getTotalSize()
Total amount of RAM available to the kernel.
|
long |
getTotalSizeKb()
Total amount of RAM available to the kernel.
|
long |
getZramTotalSizeKb() |
void |
readMemInfo() |
public void readMemInfo()
public long getTotalSize()
public long getFreeSize()
public long getCachedSize()
public long getKernelUsedSize()
public long getTotalSizeKb()
public long getFreeSizeKb()
public long getCachedSizeKb()
public long getKernelUsedSizeKb()
public long getSwapTotalSizeKb()
public long getSwapFreeSizeKb()
public long getZramTotalSizeKb()
public long[] getRawInfo()