Class PerformanceTrace

java.lang.Object
net.quasardb.qdb.PerformanceTrace

public class PerformanceTrace extends Object
  • Constructor Details

    • PerformanceTrace

      public PerformanceTrace()
  • Method Details

    • enable

      public static void enable(Session s)
    • disable

      public static void disable(Session s)
    • get

      public static Collection<PerformanceTrace.Trace> get(Session s)
      Access available performance traces. This returns all performance traces that have been recorded recently.
    • pop

      public static Collection<PerformanceTrace.Trace> pop(Session s)
      Access available performance traces, and clear the cache. This is effectively the same as calling get() and pop() after each other.
    • clear

      public static void clear(Session s)
      Clear performance trace cache. Clears all performance traces in cache associated with the session.
    • log

      public static void log(Session s)
      Log all available traces directly through slf4j. Default implementation automatically clears the trace cache after logging.
    • log

      public static void log(Session s, boolean clear)