org.bootchart.common
Class ProcessTree

java.lang.Object
  extended byorg.bootchart.common.ProcessTree

public class ProcessTree
extends java.lang.Object

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:


Field Summary
 long duration
          The duration of the process tree (measured from the start time of the first process to the end time of the last process).
 int numProc
          The number of all processes in the tree.
 java.util.List processTree
          The Process tree.
 int samplePeriod
          Statistics sampling period.
 java.util.Date startTime
          The start time of the first process in the tree.
 
Constructor Summary
ProcessTree(java.util.List processList, int samplePeriod, boolean prune)
          Creates a new process tree from the specified list of Process instances.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startTime

public java.util.Date startTime
The start time of the first process in the tree.


duration

public long duration
The 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 samplePeriod
Statistics sampling period.


numProc

public int numProc
The number of all processes in the tree.


processTree

public java.util.List processTree
The Process tree.

Constructor Detail

ProcessTree

public ProcessTree(java.util.List processList,
                   int samplePeriod,
                   boolean prune)
Creates a new process tree from the specified list of Process instances.

Parameters:
processList - list of process instances
samplePeriod - sampling period
prune - whether to prune the tree by removing sleepy and short-living processes and merging threads
Method Detail

toString

public java.lang.String toString()