mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't track total objects as its too expensive to calculate
This commit is contained in:
parent
18f0cc7d99
commit
0f2165ccf4
@ -156,7 +156,6 @@ pending_calls_metric = reactor_metrics.register_distribution("pending_calls")
|
|||||||
gc_time = reactor_metrics.register_distribution("gc_time", labels=["gen"])
|
gc_time = reactor_metrics.register_distribution("gc_time", labels=["gen"])
|
||||||
gc_unreachable = reactor_metrics.register_counter("gc_unreachable", labels=["gen"])
|
gc_unreachable = reactor_metrics.register_counter("gc_unreachable", labels=["gen"])
|
||||||
|
|
||||||
reactor_metrics.register_callback("gc_total_objects", lambda: len(gc.get_objects()))
|
|
||||||
reactor_metrics.register_callback(
|
reactor_metrics.register_callback(
|
||||||
"gc_counts", lambda: {(i,): v for i, v in enumerate(gc.get_count())}, labels=["gen"]
|
"gc_counts", lambda: {(i,): v for i, v in enumerate(gc.get_count())}, labels=["gen"]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user