diff options
author | Erik Johnston <erik@matrix.org> | 2016-06-07 17:00:45 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-06-07 17:00:45 +0100 |
commit | 0f2165ccf4fd0ae6636018cea7e1b91141179e88 (patch) | |
tree | ab79182b75ff7a5bbdf4826c32985c1447e82f3f /synapse/metrics/__init__.py | |
parent | Record some more GC metrics (diff) | |
download | synapse-0f2165ccf4fd0ae6636018cea7e1b91141179e88.tar.xz |
Don't track total objects as its too expensive to calculate
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r-- | synapse/metrics/__init__.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index 8f69aa1ff3..bdd7292a30 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -156,7 +156,6 @@ 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_total_objects", lambda: len(gc.get_objects())) reactor_metrics.register_callback( "gc_counts", lambda: {(i,): v for i, v in enumerate(gc.get_count())}, labels=["gen"] ) |