- Status New
- Percent Complete
- Task Type Patches
- Category Operating System/Drivers
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Daily build (which?)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#11176 - Keep track of threads' CPU runtime
This patch adds a per-thread runtime variable which indicates the ticks the particular thread has been running.
This can for example help identifying threads that occupy the CPU for a long period of time.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
It shows thread total cpu time which is in my opinion rather usless. I think it would be better to setup some timeframe to present how cpu time is distributed (I mean thread tics count/tics per timeframe).
I know the current implementation is rather limited, but it's very simple and not really intrusive (it could easily be #ifdef'ed).
I've thought about being able to reset the thread running time in the debug menu or making a (background) plugin which logs and displays/graphs the running time in a more usable way, but haven't gotten to it yet.
This patch is more a proof of concept than actually usable for mainline.