Rockbox

  • Status New
  • Percent Complete
    0%
  • 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
Attached to Project: Rockbox
Opened by mcuelenaere - 2010-04-05

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.

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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing