bug fixed sql runningCount & add statLog support

This commit is contained in:
wenshao
2013-05-18 22:01:29 +08:00
parent c9b2753985
commit 5f8b154bb2
12 changed files with 620 additions and 15 deletions
@@ -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;