Skip to content
Snippets Groups Projects
Commit 02270b4b authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #852 from matrix-org/erikj/gc_metrics

Add GC counts to metrics
parents 6babdb67 0f2165cc
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,10 @@ pending_calls_metric = reactor_metrics.register_distribution("pending_calls")
gc_time = reactor_metrics.register_distribution("gc_time", labels=["gen"])
gc_unreachable = reactor_metrics.register_counter("gc_unreachable", labels=["gen"])
reactor_metrics.register_callback(
"gc_counts", lambda: {(i,): v for i, v in enumerate(gc.get_count())}, labels=["gen"]
)
def runUntilCurrentTimer(func):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment