code: void resetStatistics(boolean clearHistory) {
          lastTimerPop = System.currentTimeMillis();
          previousCompleted = threadPool == null ? 0 : threadPool.getCompletedTaskCount();
          previousThroughput = 0;
  
          consecutiveQueueEmptyCount = 0;
          consecutiveNoAdjustment = 0;
          consecutiveOutlierAfterAdjustment = 0;
  
          consecutiveIdleCount = 0;
  
          if (clearHistory) {
              threadStats = new TreeMap<Integer, ThroughputDistribution>();
          }
  
          lastAction = LastAction.NONE;
      }
docs: Reset all statistics associated with the target thread pool.