MCPcopy Index your code
hub / github.com/prometheus/client_python / __init__

Method __init__

prometheus_client/gc_collector.py:12–15  ·  view source on GitHub ↗
(self, registry: CollectorRegistry = REGISTRY)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

python_implementationMethod · 0.80
registerMethod · 0.45

Tested by

no test coverage detected