net.groboclown.gui.paintpipe.v1
Class MetricsEvent

java.lang.Object
  |
  +--net.groboclown.gui.paintpipe.v1.MetricsEvent

public class MetricsEvent
extends Object

Contains information associated with all metrics of a painting thread. An event is generated at the end of an event in the painting thread, so timeElapsed always reports the time (in milliseconds) taken to do the given event.

Version:
1.0
Author:
Matt Albrecht

Field Summary
 long eventTime
          stores the event generation time, as reported by System.currentTimeMillis.
 int numberPaintAttempts
          stores the number of times the paint method was entered
 int numberWaitForEvent
          stores the number of times waiting for paint finished event
 long startTimeMillis
          stores the initial startup time of the thread
 long timeElapsed
          reports the time taken to do the given event
 long totalPaintTimeMillis
          stores the total time spent in the paint method
 long totalWaitForEventTimeMillis
          stores the total time spent waiting on a paint finished event
 
Constructor Summary
MetricsEvent(long startTimeMillis, long totalPaintTimeMillis, int numberPaintAttempts, long totalWaitForEventTimeMillis, int numberWaitForEvent, long timeElapsed)
          Basic constructor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

startTimeMillis

public long startTimeMillis
stores the initial startup time of the thread

eventTime

public long eventTime
stores the event generation time, as reported by System.currentTimeMillis.

totalPaintTimeMillis

public long totalPaintTimeMillis
stores the total time spent in the paint method

numberPaintAttempts

public int numberPaintAttempts
stores the number of times the paint method was entered

totalWaitForEventTimeMillis

public long totalWaitForEventTimeMillis
stores the total time spent waiting on a paint finished event

numberWaitForEvent

public int numberWaitForEvent
stores the number of times waiting for paint finished event

timeElapsed

public long timeElapsed
reports the time taken to do the given event
Constructor Detail

MetricsEvent

public MetricsEvent(long startTimeMillis,
                    long totalPaintTimeMillis,
                    int numberPaintAttempts,
                    long totalWaitForEventTimeMillis,
                    int numberWaitForEvent,
                    long timeElapsed)
Basic constructor.


Written under the LGPL