Generalize partitionGcStats
Generalize readAllRefs
Add a way to get a snapshot of all metrics