snapshotLiveCounts method
Snapshot of currently tracked name → live count. For tests + demo screens; do not mutate the returned map.
Implementation
@visibleForTesting
Map<String, int> snapshotLiveCounts() {
final out = <String, int>{};
for (final entry in _buckets.entries) {
out[entry.key] = entry.value.liveCount;
}
return out;
}