public class CalciteTimingTracer extends Object
| Modifier and Type | Field and Description |
|---|---|
private static DecimalFormat |
DECIMAL_FORMAT |
private long |
lastNanoTime |
private org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CalciteTimingTracer(org.slf4j.Logger logger,
String startEvent)
Creates a new timing tracer, publishing an initial event (at elapsed time
0).
|
| Modifier and Type | Method and Description |
|---|---|
void |
traceTime(String event)
Publishes an event with the time elapsed since the previous event.
|
private static final DecimalFormat DECIMAL_FORMAT
private final org.slf4j.Logger logger
private long lastNanoTime
public CalciteTimingTracer(org.slf4j.Logger logger,
String startEvent)
logger - logger on which to log timing events; level FINE will be
usedstartEvent - event to trace as start of timingpublic void traceTime(String event)
event - event to traceCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.