Class QueryPerformanceLogThreshold

java.lang.Object
io.deephaven.engine.table.impl.perf.QueryPerformanceLogThreshold

public class QueryPerformanceLogThreshold extends Object
This class encapsulates the parameters that control whether a given item (nugget or entry interval) is logged to one of our three performance logs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueryPerformanceLogThreshold(String kind, long defaultDuration)
    Create a log threshold object for a particular kind of log update "" is for instrumented QueryPerformanceLog/QueryOperationPerformanceLog nuggets "Uninstrumented" is for uninstrumented QueryPerformanceLog/QueryOperationPerformanceLog nuggets, and "Update" is for UpdatePerformanceLog entry intervals. The initial and repeated read threshold defaults to 1.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldLog(long duration)
    Should this item be logged?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QueryPerformanceLogThreshold

      public QueryPerformanceLogThreshold(String kind, long defaultDuration)
      Create a log threshold object for a particular kind of log update
      • "" is for instrumented QueryPerformanceLog/QueryOperationPerformanceLog nuggets
      • "Uninstrumented" is for uninstrumented QueryPerformanceLog/QueryOperationPerformanceLog nuggets, and
      • "Update" is for UpdatePerformanceLog entry intervals.
      The initial and repeated read threshold defaults to 1.
      Parameters:
      kind - kind of update to derive property names
      defaultDuration - default value for duration nanos
  • Method Details

    • shouldLog

      public boolean shouldLog(long duration)
      Should this item be logged?
      Parameters:
      duration - the duration (or usage) of the item
      Returns:
      true if the item exceeds our logging threshold, and thus should be logged