1.3 KiB
1.3 KiB
tokio-console support
tokio-console is a diagnostics and debugging tool for asynchronous Rust programs. This tool can be
useful to lint runtime behavior, collect diagnostic data from processes, and debugging performance
issues. "it's like top(1) for tasks!"
Setup
Support for tokio-console is not enabled by default for zebrad. To activate this feature, run:
$ RUSTFLAGS="--cfg tokio_unstable" cargo build --no-default-features --features="tokio-console" --bin zebrad
Install tokio-console.
Then start zebrad however you wish.
When zebrad is running, run:
$ tokio-console
The default options are used, so tokio-console should connect to the running zebrad without other configuration.
Example
More
For more details, see the tokio docs.