changes.
[IRC.git] / Robust / CoreProf / EventSummary.java
1 import java.util.*;
2
3 // This class summarizes a group of events
4 // that are 1) the same eventID and
5 // 2) occurred under the same summarized parent
6 // event in the stack
7
8 public class EventSummary {
9
10   // all events in this summary are the same
11   // type of event
12   public int eventID;  
13
14   // log the beginning of the latest
15   // instance of this event during parsing
16   public long timeStampBeginLatestInstance;
17
18   // the number of instances of the event
19   // in this summary
20   public long instanceCount;
21
22   // track total time of all events in this summary,
23   // and amount of time spent in the events of this
24   // summary but OUTSIDE of children events (self time)
25   public long totalTime_ticks;
26   public long selfTime_ticks;
27
28   // track parents/children to understand percentage
29   // of a child in context of parent's total
30   public EventSummary      parent;
31   public Vector<EventSummary> children;
32
33
34   public EventSummary( int eventID ) {
35     this.eventID         = eventID;  
36     this.instanceCount   = 0;
37     this.totalTime_ticks = 0;
38     this.selfTime_ticks  = 0;
39     this.parent          = null;
40     this.children        = new Vector<EventSummary>( 20, 100 );
41   }
42 }