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§
- Diag
Spawn - Wraps around a
Tand provides lots of diagnostics about tasks spawned through it. - Diagnose
Future - Wraps around
Futureand adds diagnostics to it.
Traits§
- Future01
Ext - Extension trait on
Futures. - Future
Ext - Extension trait on
Futures.
Functions§
- diagnose
- Wraps around a
Futureand adds diagnostics.