Expand description
#[psync::graph(profile)]: compile the function as written, timing every statement that
awaits, for psync-predict (see psync::profile).
A statement is timed when it awaits outside any nested block; statements inside its blocks are
timed on their own, so no cost is counted twice. Async blocks and closures are separate
futures and are left alone. Each statement reports line!() at its own span, the line its
first token is on, which is the line psync’s report gives its node.
Structs§
- Profile 🔒
Functions§
- awaits_
directly 🔒 - Whether
stmtawaits outside any nested block, closure or async block. - instrument 🔒