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() |
static void |
main(java.lang.String[] args)
Main is purely for command-line testing.
|
static int |
numSetBitsHex(java.lang.String s) |
void |
read()
Read and parse data from /proc/stat and /proc/<pid>/stat.
|
boolean |
valid() |
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)
public static void main(java.lang.String[] args)