public Map<Integer, SizeEntry> getSizeForLocalPrimaryBuckets() {
    return getSizeLocallyForBuckets(getAllLocalPrimaryBucketIds());
  }
This method iterates over localBucket2RegionMap and returns collective size of the primary
bucket regions.

@return the map of bucketIds and their associated sizes, or {@link Collections#EMPTY_MAP}when
        the size is zero
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java