From 8e9405ff412b3f5bedafc4f3dfffbd79b418467f Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 2 Nov 2026 14:48:53 +0000 Subject: [PATCH] Update synapse/metrics/_thread_cpu.py Co-authored-by: Eric Eastwood --- synapse/metrics/_thread_cpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/metrics/_thread_cpu.py b/synapse/metrics/_thread_cpu.py index 8cd00ed2a6..fb3cb52615 100644 --- a/synapse/metrics/_thread_cpu.py +++ b/synapse/metrics/_thread_cpu.py @@ -50,8 +50,8 @@ class _ThreadSample: class ThreadCPUMetrics(Collector): """Reports the CPU time used by each type of thread in the process. - Threads are grouped by what they run: the main (reactor) thread, each - registered threadpool, the tokio runtime, and `other` for everything else. + Threads are grouped by what they run: the main (reactor) thread, a + registered type, the `tokio` runtime, and `other` for everything else. Linux only, as it reads `/proc/self/task`. The kernel only reports CPU time for live threads, so the collector sums the CPU time each thread used