Package org.apache.calcite.util.trace
Class CalciteTimingTracer
java.lang.Object
org.apache.calcite.util.trace.CalciteTimingTracer
CalciteTimingTracer provides a mechanism for tracing the timing of a call
sequence at nanosecond resolution.
-
Constructor Summary
ConstructorDescriptionCalciteTimingTracer
(org.slf4j.Logger logger, String startEvent) Creates a new timing tracer, publishing an initial event (at elapsed time 0). -
Method Summary
-
Constructor Details
-
CalciteTimingTracer
Creates a new timing tracer, publishing an initial event (at elapsed time 0).- Parameters:
logger
- logger on which to log timing events; level FINE will be usedstartEvent
- event to trace as start of timing
-
-
Method Details
-
traceTime
Publishes an event with the time elapsed since the previous event.- Parameters:
event
- event to trace
-