Class QueryPerformanceLogThreshold
java.lang.Object
io.deephaven.engine.table.impl.perf.QueryPerformanceLogThreshold
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
ConstructorDescriptionQueryPerformanceLogThreshold
(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
-
Constructor Details
-
QueryPerformanceLogThreshold
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.
- Parameters:
kind
- kind of update to derive property namesdefaultDuration
- 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
-