public class ProcTime
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ProcTime() |
| Modifier and Type | Method and Description |
|---|---|
void |
gather(Sigar sigar,
long pid) |
long |
getStartTime()
Get the Time process was started in seconds.
|
long |
getSys()
Get the Process cpu kernel time.
|
long |
getTotal()
Get the Process cpu time (sum of User and Sys).
|
long |
getUser()
Get the Process cpu user time.
|
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar, long pid) throws SigarException
SigarExceptionpublic long getStartTime()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic long getUser()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic long getSys()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic long getTotal()
Supported Platforms: All.
System equivalent commands:
top, pstop, pstop, pstop, pstop, pstop, pstaskmanpublic java.util.Map toMap()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2004-2011 Hyperic. All Rights Reserved.