mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 19:57:45 +00:00
Update synapse/metrics/_thread_cpu.py
Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
1 parent
0624549999
commit
8e9405ff41
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user