3 // This class summarizes a group of events
4 // that are 1) the same eventID and
5 // 2) occurred under the same summarized parent
8 public class EventSummary {
10 // all events in this summary are the same
14 // log the beginning of the latest
15 // instance of this event during parsing
16 public long timeStampBeginLatestInstance;
18 // the number of instances of the event
20 public long instanceCount;
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;
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;
34 public EventSummary( int eventID ) {
35 this.eventID = eventID;
36 this.instanceCount = 0;
37 this.totalTime_ticks = 0;
38 this.selfTime_ticks = 0;
40 this.children = new Vector<EventSummary>( 20, 100 );