public void setStatisticsEnabled(boolean statisticsEnabled) {
    regionAttributes.statisticsEnabled = statisticsEnabled;
    regionAttributes.setHasStatisticsEnabled(true);
  }
Sets whether statistics are enabled for this region and its entries. Default is false.

@param statisticsEnabled whether statistics are enabled
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java