|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.assembler.perf.TimeEvent
public class TimeEvent
An implementation of the Event
interface that tracks the time spent in performing an event.
This class tracks both descendant time (all time not spent in the current invocation),
and self time (time spent only in the current invocation, without descendant
invocations). Note that this implementation tracks time in microseconds and
utilizes System.nanoTime()
for timing information.
Constructor Summary | |
---|---|
TimeEvent()
Constructs a TimeEvent . |
Method Summary | |
---|---|
EventSummary |
finished()
Produce a summary of this event, for storage and further summarization. |
void |
resume(Event oldEvent)
Resume this event; the old event is passed for reference. |
void |
suspend(Event newEvent)
Suspend this event; the new event is passed for reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeEvent()
TimeEvent
. Note that time tracking starts immediately upon construction.
Method Detail |
---|
public void suspend(Event newEvent)
Event
suspend
in interface Event
newEvent
- the new event that now covers the scopepublic EventSummary finished()
Event
finished
in interface Event
public void resume(Event oldEvent)
Event
resume
in interface Event
oldEvent
- the old event that is now out of scope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |