Class CalciteTimingTracer

java.lang.Object
org.apache.calcite.util.trace.CalciteTimingTracer

public class CalciteTimingTracer extends Object
CalciteTimingTracer provides a mechanism for tracing the timing of a call sequence at nanosecond resolution.
  • Constructor Details

    • CalciteTimingTracer

      public CalciteTimingTracer(org.slf4j.Logger logger, String startEvent)
      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 used
      startEvent - event to trace as start of timing
  • Method Details

    • traceTime

      public void traceTime(String event)
      Publishes an event with the time elapsed since the previous event.
      Parameters:
      event - event to trace