Use attribute comments

This commit is contained in:
Erik Johnston committed 2026-11-02 14:04:45 +00:00
1 parent 7750342cb7
commit 77baab0be1
1 file changed
+7 -3
+7 -3
View File
@@ -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):