public final class ProfileBreakdown extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProfileBreakdown.TimingType
Enumeration of all supported timing types.
|
Constructor and Description |
---|
ProfileBreakdown()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
merge(ProfileBreakdown other)
Add
other 's timings into this breakdown |
void |
startTime(ProfileBreakdown.TimingType timing)
Begin timing a query for a specific Timing context
|
long |
stopAndRecordTime()
Halt the timing process and save the elapsed time.
|
Map<String,Long> |
toTimingMap()
Convert this record to a map from
ProfileBreakdown.TimingType to times. |
public void startTime(ProfileBreakdown.TimingType timing)
timing
- The timing context being profiledpublic long stopAndRecordTime()
public Map<String,Long> toTimingMap()
ProfileBreakdown.TimingType
to times.public void merge(ProfileBreakdown other)
other
's timings into this breakdownother
- Another Breakdown to merge with this oneCopyright © 2009–2017. All rights reserved.