Update synapse/metrics/_thread_cpu.py

Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
Erik JohnstonandEric Eastwood authored and GitHub committed 2026-11-02 14:48:53 +00:00
1 parent 0624549999
commit 8e9405ff41
1 file changed
+2 -2
+2 -2
View File
@@ -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