void incrementCount() {
    sampleCount++;

    if (!isOld && sampleCount > OLD_THRESHOLD) {
      isOld = true;
    }
  }
This file is modified from <a
href="https://github.com/openjdk/jdk17/blob/master/src/hotspot/share/gc/shared/gcUtil.hpp">JDK17
AdaptiveWeightedAverage</a>. But some necessary modifications are made to adapt to the usage of
binary allocator:

<p>Adaptive weighted average implementation for memory allocation tracking. During each eviction
cycle, records the peak memory allocation size via sampling, then uses this peak to calculate a
weighted moving average.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/binaryallocator/ema/AdaptiveWeightedAverage.java