public class LinuxProcFileReader
extends java.lang.Object
Constructor and Description |
---|
LinuxProcFileReader()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long[][] |
getCpuTicks()
Array of ticks.
|
int |
getProcessCpusAllowed() |
java.lang.String |
getProcessID() |
int |
getProcessNumOpenFds() |
long |
getProcessRss() |
long |
getProcessTotalTicks() |
long |
getSystemIdleTicks() |
long |
getSystemTotalTicks() |
boolean |
isWsl() |
static int |
numSetBitsHex(java.lang.String s) |
void |
read()
Read and parse data from /proc/stat and /proc/<pid>/stat.
|
boolean |
valid() |
public boolean isWsl()
public long getSystemIdleTicks()
public long getSystemTotalTicks()
public long getProcessTotalTicks()
public long[][] getCpuTicks()
public long getProcessRss()
public int getProcessCpusAllowed()
public int getProcessNumOpenFds()
public java.lang.String getProcessID()
public void read()
public boolean valid()
public static int numSetBitsHex(java.lang.String s)