console icon indicating copy to clipboard operation
console copied to clipboard

For a running task, show the thread id it's currently executing on

Open alex opened this issue 6 months ago • 0 comments

What problem are you trying to solve?

An extremely annoying problem to debug is "my tokio task is blocking the executor for a long time doing something". In such cases, the tasks tend to be obvious in tokio-console, but tokio-console can't tell you what the task is doing.

In those cases, it'd be nice to have the OS thread ID so that you can then go use lldb to get a stack trace for that thread.

How should the problem be solved?

Somewhere on the tokio-console page, show the thread id for currently running tasks

Any alternatives you've considered?

tokio-console could show the stack trace itself, but that's a lot more complicated

How would users interact with this feature?

No response

Would you like to work on this feature?

no

alex avatar Jun 03 '25 20:06 alex