tracing-coz

Rust-tracing support for the coz Causal Profiler

Documentation

Usage

First, follow the instructions in [coz] to install the coz command.

Note that this crate is a facade over rust-coz as such its information applies to this crate.

With this crate spans are mapped to coz::begin! and coz::end!, and events are mapped to coz::progress!, as throughput or latency tracepoints respectively. More information on this can be found upstream.

After you've instrumented your code, you need to also ensure that you're compiling with DWARF debug information. To do this you'll want to configure Cargo.toml again:

toml [profile.release] debug = 1

Next up you'll build your application with cargo build --release, and then finally you can run it with coz run --- ./target/release/$your_binary.

Caveats

Known caveats so far to generate a report that collects information are:

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.