| |
|
| java.lang.Object org.cougaar.tools.csmart.runtime.jni.ProcCpu
ProcCpu | class ProcCpu (Code) | | This class attempts to read the cpu load stats from the /proc filesystem.
It totals up the user and kernel cpu time for the process group that includes
the specified process. This way it can accumulate stats for all of the java threads
in an application.
|
Inner Class :static class Proc | |
Constructor Summary | |
| ProcCpu(String pid) Monitor the specified pid. | | ProcCpu() Monitor the current pid. |
Method Summary | |
public static Vector | explode(String s) | int | get() Return the (cumulative) number of jiffies (1/100 sec) used
by this process. | public static boolean | isOK() This method returs true iff this system supports the /proc filesystem. | public static void | main(String args) |
ProcCpu | ProcCpu(String pid)(Code) | | Monitor the specified pid.
|
ProcCpu | ProcCpu()(Code) | | Monitor the current pid.
|
get | int get()(Code) | | Return the (cumulative) number of jiffies (1/100 sec) used
by this process.
(Actually all of the processes in the process group)
|
isOK | public static boolean isOK()(Code) | | This method returs true iff this system supports the /proc filesystem.
|
|
|
|