Expand description

Wraps around futures and profiles them.

Usage

futures::executor::block_on(futures_diagnose::diagnose("task-name", async move {
    // ...
}))

Wrap all your futures into futures_diagnose::diagnose. Then launch your program with the PROFILE_DIR environment variable set to a path name. CPU profiling will automatically be performed and JSON files written in the target directory.

You can open the JSON files using the Chrome browser by opening the address chrome://tracing.

Modules

Structs

Wraps around a T and provides lots of diagnostics about tasks spawned through it.

Wraps around Future and adds diagnostics to it.

Traits

Extension trait on Futures.

Extension trait on Futures.

Functions

Wraps around a Future and adds diagnostics.