Package org.bootchart.common
Class Process
java.lang.Object
org.bootchart.common.Process
- All Implemented Interfaces:
Comparable
Process encapsulation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the process is active.A list of childrenProcesses.Command line.Process decription (e.g.longProcess duration in milliseconds.Parent process.intProcess ID.intParent process ID.A list of process statistics samples.Process start time.static final intRunning state.static final intSleeping state.static final intStopped or traced.static final intUndefined state.static final intUninterruptible sleep.static final intZombie state (defunct). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
STATE_UNDEFINED
public static final int STATE_UNDEFINEDUndefined state.- See Also:
-
STATE_RUNNING
public static final int STATE_RUNNINGRunning state.- See Also:
-
STATE_SLEEPING
public static final int STATE_SLEEPINGSleeping state.- See Also:
-
STATE_WAITING
public static final int STATE_WAITINGUninterruptible sleep.- See Also:
-
STATE_STOPPED
public static final int STATE_STOPPEDStopped or traced.- See Also:
-
STATE_ZOMBIE
public static final int STATE_ZOMBIEZombie state (defunct).- See Also:
-
pid
public int pidProcess ID. -
cmd
Command line. -
desc
Process decription (e.g. PID and command, script stack trace, etc.). -
startTime
Process start time. -
duration
public long durationProcess duration in milliseconds. -
parent
Parent process. -
ppid
public int ppidParent process ID. -
childList
A list of childrenProcesses. -
samples
A list of process statistics samples. -
active
public boolean activeWhether the process is active. A process is active if it contains at least one non-sleeping sample. Idle processes are optionally filtered out.
-
-
Constructor Details
-
Process
Created a new process.- Parameters:
pid- process IDcmd- command line
-
-
Method Details