mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-05 21:57:42 +00:00
Use attribute comments
This commit is contained in:
1 parent
7750342cb7
commit
77baab0be1
1 file changed
+7
-3
@@ -35,12 +35,16 @@ logger = logging.getLogger(__name__)
|
||||
class _ThreadSample:
|
||||
"""A thread's CPU usage as of one scrape."""
|
||||
|
||||
# When the thread started, in ticks since boot. Tells apart a new thread
|
||||
# that reuses the ID of one that exited.
|
||||
start_time: int
|
||||
# The user and system CPU the thread had used, in ticks.
|
||||
"""When the thread started, in ticks since boot. Used to distinguish a new
|
||||
thread that reuses the ID of one that exited.
|
||||
"""
|
||||
|
||||
utime: int
|
||||
"""User CPU time used by the thread, in ticks."""
|
||||
|
||||
stime: int
|
||||
"""System CPU time used by the thread, in ticks."""
|
||||
|
||||
|
||||
class ThreadCPUMetrics(Collector):
|
||||
|
||||
Reference in new issue
Block a user