mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed sql runningCount & add statLog support
This commit is contained in:
@@ -76,6 +76,14 @@ public class Histogram {
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
public long[] toArrayAndReset() {
|
||||
long[] array = new long[rangeCounters.length()];
|
||||
for (int i = 0; i < rangeCounters.length(); i++) {
|
||||
array[i] = rangeCounters.getAndSet(i, 0);
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
public long[] getRanges() {
|
||||
return ranges;
|
||||
|
||||
Reference in New Issue
Block a user