(self, registry: CollectorRegistry = REGISTRY)
| 10 | """Collector for Garbage collection statistics.""" |
| 11 | |
| 12 | def __init__(self, registry: CollectorRegistry = REGISTRY): |
| 13 | if not hasattr(gc, 'get_stats') or platform.python_implementation() != 'CPython': |
| 14 | return |
| 15 | registry.register(self) |
| 16 | |
| 17 | def collect(self) -> Iterable[Metric]: |
| 18 | collected = CounterMetricFamily( |
nothing calls this directly
no test coverage detected