Package org.bootchart.common
Class ProcessTree
java.lang.Object
org.bootchart.common.ProcessTree
ProcessTree encapsulates a process tree. The tree is built from log files
retrieved during the boot process. When building the process tree, it is
pruned and merged in order to be able to visualize it in a comprehensible
manner.
The following pruning techniques are used:
- idle processes that keep running during the last process sample (which is a heuristic for a background processes) are removed,
- short-lived processes (i.e. processes that only live for the duration of two samples or less) are removed,
- the processes used by the boot logger are removed,
- expoders (i.e. processes that are known to spawn huge meaningless process subtrees) have their subtrees merged together,
- siblings (i.e. processes with the same command line living concurrently -- thread heuristic) are merged together,
- process runs (unary trees with processes sharing the command line) are merged together.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe duration of the process tree (measured from the start time of the first process to the end time of the last process).intThe number of all processes in the tree.TheProcesstree.intStatistics sampling period.The start time of the graph -
Constructor Summary
ConstructorsConstructorDescriptionProcessTree(PsStats psStats, String monitoredApp, boolean prune) Creates a new process tree from the specified list ofProcessinstances. -
Method Summary
-
Field Details
-
startTime
The start time of the graph -
endTime
-
duration
public long durationThe duration of the process tree (measured from the start time of the first process to the end time of the last process). This is also the total boot time. -
samplePeriod
public int samplePeriodStatistics sampling period. -
numProc
public int numProcThe number of all processes in the tree. -
processTree
TheProcesstree.
-
-
Constructor Details
-
ProcessTree
Creates a new process tree from the specified list ofProcessinstances.- Parameters:
psStats- process statisticsmonitoredApp- monitored application (ornullif the boot process is monitored)prune- whether to prune the tree by removing sleepy and short-living processes and merging threads
-
-
Method Details