Is there a way to find out which function block the tokio schedule #410
-
The users may misuse some block functions without Currently, it is hard to debug. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
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.
-
@hds , is the busy, sched, idle are showing accumulative value but not a certain time window? |
Beta Was this translation helpful? Give feedback.
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.