Crate async_inspect

Crate async_inspect 

Source
Expand description

Β§async-inspect πŸ”

X-ray vision for async Rust

async-inspect visualizes and inspects async state machines in Rust. See exactly what your futures are doing, where they’re stuck, and why.

Β§Quick Start

β“˜
use async_inspect::prelude::*;

#[async_inspect::trace]
async fn fetch_user(id: u64) -> User {
    let profile = fetch_profile(id).await;
    let posts = fetch_posts(id).await;
    User { profile, posts }
}

Β§Features

  • πŸ” State Machine Inspection - See current state and variables
  • ⏱️ Execution Timeline - Visualize async execution
  • πŸ’€ Deadlock Detection - Find circular dependencies
  • πŸ“Š Performance Analysis - Identify bottlenecks

Re-exportsΒ§

pub use error::Error;
pub use error::Result;

ModulesΒ§

deadlock
Deadlock detection Deadlock detection and analysis
error
Error types Error definitions
inspector
Core inspection types and traits Core inspection functionality
instrument
Instrumentation and tracing Code instrumentation utilities
prelude
Prelude for convenient imports Convenient re-exports
profile
Performance profiling Performance analysis tools
runtime
Runtime integration hooks Integration with async runtimes
state_machine
State machine introspection State machine analysis and visualization
task
Task tracking and monitoring Task lifecycle tracking
timeline
Timeline and execution history Execution timeline tracking