Is there a way to find out which function block the tokio schedule #410
Answered
by
hds
attila-lin
asked this question in
Q&A
-
The users may misuse some block functions without Currently, it is hard to debug. |
Beta Was this translation helpful? Give feedback.
Answered by
hds
May 12, 2023
Replies: 1 comment
-
In tokio-console you can see from the poll time which task is blocking (because its busy time keeps going up), but it's not possible to get function level information. You can use the (unstable) task builder API in tokio to name tasks and thus get a better idea of where the blocking is coming from. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In tokio-console you can see from the poll time which task is blocking (because its busy time keeps going up), but it's not possible to get function level information.
You can use the (unstable) task builder API in tokio to name tasks and thus get a better idea of where the blocking is coming from.