Expand description
Rust support for the coz Causal Profiler
This crate is a translation of the coz.h header file provided by coz to
Rust, and enables profiling Rust programs with coz to profile throughput
and latency.
For usage information, consult the README.md for the coz
repository as well as the README.md for
coz-rs.
Macros§
- begin
- Equivalent of the
COZ_BEGINmacro - end
- Equivalent of the
COZ_ENDmacro - progress
- Equivalent of the
COZ_PROGRESSandCOZ_PROGRESS_NAMEDmacros - scope
- Marks a lexical scope with
coz::begin!andcoz::end!which are executed even on early exit (e.g. viareturn,?orpanic!).
Structs§
- Counter
- A
coz-counter which is either intended for throughput orbegin/endpoints. - Guard
- A type that increments a counter on drop. This allows us to issue the right
coz calls to
beginandendfor the duration of a scope, regardless of how the scope was exited (e.g. by early return,?or panic).
Functions§
- thread_
init - Perform one-time per-thread initialization for
coz.