3 releases

0.1.2 May 24, 2020
0.1.1 May 16, 2020
0.1.0 Feb 25, 2020

#71 in Profiling

Download history 61/week @ 2020-12-24 88/week @ 2020-12-31 225/week @ 2021-01-07 276/week @ 2021-01-14 261/week @ 2021-01-21 259/week @ 2021-01-28 342/week @ 2021-02-04 276/week @ 2021-02-11 171/week @ 2021-02-18 174/week @ 2021-02-25 158/week @ 2021-03-04 340/week @ 2021-03-11 569/week @ 2021-03-18 539/week @ 2021-03-25 392/week @ 2021-04-01 528/week @ 2021-04-08

850 downloads per month
Used in 11 crates (via superluminal-perf)

MIT/Apache

145KB

🔆 superluminal-perf-rs

Embark Embark Crates.io Docs dependency status Build Status

Superluminal Performance profiler Rust API for adding user events to captures.

How to use

In Cargo.toml add:

[dependencies]
superluminal-perf = "0.1.0"

Example usage:

superluminal_perf::begin_event("my-event");
calc();
superluminal_perf::end_event();

superluminal_perf::begin_event("my-event2");
calc2();
superluminal_perf::end_event();

On non-Windows platforms the events will be compiled out.

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

License

Licensed under either of

at your option.

Note that the Superluminal Performance C API, that this crate uses and embeds, is licensed under BSD.

Contribution

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

No runtime deps