public abstract class AbstractProfileBreakdown<T extends java.lang.Enum<T>>
extends java.lang.Object
Constructor and Description |
---|
AbstractProfileBreakdown(T[] timingTypes)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
merge(AbstractProfileBreakdown<T> other)
Add
other 's timings into this breakdown |
void |
startTime(T timing)
Begin timing a query for a specific Timing context
|
long |
stopAndRecordTime()
Halt the timing process and save the elapsed time.
|
java.util.Map<java.lang.String,java.lang.Long> |
toTimingMap()
Convert this record to a map from timingType to times.
|
public AbstractProfileBreakdown(T[] timingTypes)
public void startTime(T timing)
timing
- The timing context being profiledpublic long stopAndRecordTime()
public java.util.Map<java.lang.String,java.lang.Long> toTimingMap()
public void merge(AbstractProfileBreakdown<T> other)
other
's timings into this breakdownother
- Another Breakdown to merge with this one