code: public void reset() {
          // if we are resetting, that means the lastBucket won't have a chance to be captured in CumulativeSum, so let's do it here
          Bucket lastBucket = buckets.peekLast();
          if (lastBucket != null) {
              cumulativeSum.addBucket(lastBucket);
          }
  
          // clear buckets so we start over again
          buckets.clear();
      }
docs: Force a reset of all rolling counters (clear all buckets) so that statistics start being gathered from scratch.
  <p>
  This does NOT reset the CumulativeSum values.