org.webmacro.profile
Class ProfileEvent

java.lang.Object
  |
  +--org.webmacro.profile.ProfileEvent

public final class ProfileEvent
extends java.lang.Object

The ProfileEvent interface describes an event that took place in the system. All that is recorded about the event is its name, when it started, and when it stopped.


Field Summary
 int depth
          How many levels down the "call stack" is this event? In other words, how many events enclose it.
 int duration
          Milliseconds that this event lasted for
 java.lang.String name
          The name of this event
 long start
          Milliseconds since Jan 1, 1970 that this event started
 
Constructor Summary
ProfileEvent()
          Create a new profile event with null and 0 values
ProfileEvent(java.lang.String name, int start, int duration, int depth)
          Create a new profile event with the supplied values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of this event

start

public long start
Milliseconds since Jan 1, 1970 that this event started

duration

public int duration
Milliseconds that this event lasted for

depth

public int depth
How many levels down the "call stack" is this event? In other words, how many events enclose it.
Constructor Detail

ProfileEvent

public ProfileEvent()
Create a new profile event with null and 0 values

ProfileEvent

public ProfileEvent(java.lang.String name,
                    int start,
                    int duration,
                    int depth)
Create a new profile event with the supplied values