Collect garbage collection metrics