public class QueryPerformanceLogThreshold extends Object
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldLog(long duration,
long repeatedReads,
long initialReads)
Should this item be logged?
|
public QueryPerformanceLogThreshold(String kind, long defaultDuration)
kind - kind of update to derive property namesdefaultDuration - default value for duration nanospublic boolean shouldLog(long duration,
long repeatedReads,
long initialReads)
duration - the duration (or usage) of the itemrepeatedReads - the number of repeated reads which occurredinitialReads - the number of initial reads which occurred