| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private long | longestQueryTimeMs
If gathering metrics, what was the execution time of the longest query so far ? |
| private long | |
| private long | |
| private long | numberOfPreparedExecutes
When was the last time we reported metrics? |
| private long | |
| private long | |
| private long | |
| private long[] | |
| private int[] | |
| private long[] | |
| private int[] | |
| private long[] | |
| private int[] | |
| private long | |
| private double | |
| private double | |
| private double | |
| private long | |
| private double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addToHistogram(int[] histogramCounts, long[] histogramBreakpoints, long value, int numberOfTimes, long currentLowerBound, long currentUpperBound)
|
| private void | |
| private void | |
| public boolean | Returns: true if millisOrNanos is outside the 99th percentile?query execution time millisOrNanos)Update statistics that allows the driver to determine if a query is slow enough to be logged, and return the estimation result for millisOrNanos value. |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | repartitionHistogram(int[] histCounts, long[] histBreakpoints, long currentLowerBound, long currentUpperBound)
|
| private void | |
| private void | |
| public void | |
| public void | |
| public void |
| HISTOGRAM_BUCKETS | back to summary |
|---|---|
| private static final int HISTOGRAM_BUCKETS | |
| longestQueryTimeMs | back to summary |
|---|---|
| private long longestQueryTimeMs If gathering metrics, what was the execution time of the longest query so far ? | |
| maximumNumberTablesAccessed | back to summary |
|---|---|
| private long maximumNumberTablesAccessed | |
| minimumNumberTablesAccessed | back to summary |
|---|---|
| private long minimumNumberTablesAccessed | |
| numberOfPreparedExecutes | back to summary |
|---|---|
| private long numberOfPreparedExecutes When was the last time we reported metrics? | |
| numberOfPrepares | back to summary |
|---|---|
| private long numberOfPrepares | |
| numberOfQueriesIssued | back to summary |
|---|---|
| private long numberOfQueriesIssued | |
| numberOfResultSetsCreated | back to summary |
|---|---|
| private long numberOfResultSetsCreated | |
| numTablesMetricsHistBreakpoints | back to summary |
|---|---|
| private long[] numTablesMetricsHistBreakpoints | |
| numTablesMetricsHistCounts | back to summary |
|---|---|
| private int[] numTablesMetricsHistCounts | |
| oldHistBreakpoints | back to summary |
|---|---|
| private long[] oldHistBreakpoints | |
| oldHistCounts | back to summary |
|---|---|
| private int[] oldHistCounts | |
| perfMetricsHistBreakpoints | back to summary |
|---|---|
| private long[] perfMetricsHistBreakpoints | |
| perfMetricsHistCounts | back to summary |
|---|---|
| private int[] perfMetricsHistCounts | |
| queryTimeCount | back to summary |
|---|---|
| private long queryTimeCount | |
| queryTimeMean | back to summary |
|---|---|
| private double queryTimeMean | |
| queryTimeSum | back to summary |
|---|---|
| private double queryTimeSum | |
| queryTimeSumSquares | back to summary |
|---|---|
| private double queryTimeSumSquares | |
| shortestQueryTimeMs | back to summary |
|---|---|
| private long shortestQueryTimeMs | |
| totalQueryTimeMs | back to summary |
|---|---|
| private double totalQueryTimeMs | |
| BaseMetricsHolder | back to summary |
|---|---|
| public BaseMetricsHolder() | |
| addToHistogram | back to summary |
|---|---|
| private void addToHistogram(int[] histogramCounts, long[] histogramBreakpoints, long value, int numberOfTimes, long currentLowerBound, long currentUpperBound) | |
| addToPerformanceHistogram | back to summary |
|---|---|
| private void addToPerformanceHistogram(long value, int numberOfTimes) | |
| addToTablesAccessedHistogram | back to summary |
|---|---|
| private void addToTablesAccessedHistogram(long value, int numberOfTimes) | |
| checkAbonormallyLongQuery | back to summary |
|---|---|
| public boolean checkAbonormallyLongQuery(long millisOrNanos) Update statistics that allows the driver to determine if a query is slow enough to be logged, and return the estimation result for millisOrNanos value. Used in case autoSlowLog=true.
| |
| checkAndCreatePerformanceHistogram | back to summary |
|---|---|
| private void checkAndCreatePerformanceHistogram() | |
| checkAndCreateTablesAccessedHistogram | back to summary |
|---|---|
| private void checkAndCreateTablesAccessedHistogram() | |
| createInitialHistogram | back to summary |
|---|---|
| private void createInitialHistogram(long[] breakpoints, long lowerBound, long upperBound) | |
| incrementNumberOfPreparedExecutes | back to summary |
|---|---|
| public void incrementNumberOfPreparedExecutes() | |
| incrementNumberOfPrepares | back to summary |
|---|---|
| public void incrementNumberOfPrepares() | |
| incrementNumberOfResultSetsCreated | back to summary |
|---|---|
| public void incrementNumberOfResultSetsCreated() | |
| registerQueryExecutionTime | back to summary |
|---|---|
public void registerQueryExecutionTime(long queryTimeMs)
| |
| repartitionHistogram | back to summary |
|---|---|
| private void repartitionHistogram(int[] histCounts, long[] histBreakpoints, long currentLowerBound, long currentUpperBound) | |
| repartitionPerformanceHistogram | back to summary |
|---|---|
| private void repartitionPerformanceHistogram() | |
| repartitionTablesAccessedHistogram | back to summary |
|---|---|
| private void repartitionTablesAccessedHistogram() | |
| reportMetrics | back to summary |
|---|---|
| public void reportMetrics(Log log) | |
| reportNumberOfTablesAccessed | back to summary |
|---|---|
| public void reportNumberOfTablesAccessed(int numTablesAccessed) ** | |
| reportQueryTime | back to summary |
|---|---|
| public void reportQueryTime(long millisOrNanos) | |