summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-11-03 16:37:09 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-11-03 16:37:09 +0000
commit93ebeb2aa8bf32e0c0f63ff4c933a5e2d43cc29a (patch)
treeea3cd9e7f0c0660f920f01ff12c403a4689b8e30
parentNow we have new-style metrics don't bother exporting legacy-named process ones (diff)
downloadsynapse-93ebeb2aa8bf32e0c0f63ff4c933a5e2d43cc29a.tar.xz
Remove now-unused 'resource' import
-rw-r--r--synapse/metrics/process_collector.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/metrics/process_collector.py b/synapse/metrics/process_collector.py

index 4df3a2fa24..f812a80e95 100644 --- a/synapse/metrics/process_collector.py +++ b/synapse/metrics/process_collector.py
@@ -13,12 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Because otherwise 'resource' collides with synapse.metrics.resource -from __future__ import absolute_import - import os import stat -from resource import getrusage, RUSAGE_SELF TICKS_PER_SEC = 100 @@ -49,7 +45,6 @@ STAT_FIELDS = { } -rusage = None stats = {} fd_counts = None @@ -65,9 +60,6 @@ if HAVE_PROC_STAT: def update_resource_metrics(): - global rusage - rusage = getrusage(RUSAGE_SELF) - if HAVE_PROC_SELF_STAT: global stats with open("/proc/self/stat") as s: