forest icon indicating copy to clipboard operation
forest copied to clipboard

Investigate on supporting Tokio Console

Open elmattic opened this issue 2 years ago • 3 comments

Issue summary

We shoud investigate on how to use Tokio Console alongside Forest. This kind of tooling would really help us:

  • understanding Forest execution flow
  • debugging concurency or memory issues
  • optimizing our async code

While Tokio Console is not tight to the tokio runtime, as of today only tokio runtime supports it.

Few possible ways of supporting this tool would be (while not trivial):

  • Have a native support of tokio in forest (through a feature flag)
  • Implement tracing in async_std runtime (so the smol runtime)
  • Some other shortcut?

Other information and links

https://tokio.rs/blog/2021-12-announcing-tokio-console

elmattic avatar Aug 22 '22 14:08 elmattic

While Tokio Console is not tight to the tokio runtime, as of today only tokio runtime supports it.

"While Tokio Console is not tied to a specific async runtime, as of today only tokio runtime supports it." ?

lemmih avatar Aug 22 '22 14:08 lemmih

While Tokio Console is not tight to the tokio runtime, as of today only tokio runtime supports it.

"While Tokio Console is not tied to a specific async runtime, as of today only tokio runtime supports it." ?

Yes exactly, you reword it very well.

elmattic avatar Aug 22 '22 14:08 elmattic

The lemmih/tokio-async branch contains a version of forest that works with tokio-console. There are still some kinks to be worked out because we call async code from a few non-async places.

lemmih avatar Sep 01 '22 09:09 lemmih