How to Profile Async Rust Applications (tokio-console)

Install tokio-console and run your app with RUST_LOG enabled to view a live dashboard of async task performance.

Install the tokio-console crate and its dependencies, then run your application with the RUST_LOG environment variable set to enable tracing.

cargo add tokio-console
RUST_LOG=info cargo run

Open http://localhost:6669 in your browser to view the live dashboard of async tasks, threads, and resource usage.