#profiler #performance #superluminal

superluminal-perf

Superluminal Performance API for adding user events to profiler captures

2 releases

✓ Uses Rust 2018 edition

0.1.1 May 16, 2020
0.1.0 Feb 25, 2020

#23 in Profiling

Download history 70/week @ 2020-02-21 195/week @ 2020-02-28 201/week @ 2020-03-06 139/week @ 2020-03-13 211/week @ 2020-03-20 125/week @ 2020-03-27 112/week @ 2020-04-03 190/week @ 2020-04-10 220/week @ 2020-04-17 275/week @ 2020-04-24 268/week @ 2020-05-01 224/week @ 2020-05-08

744 downloads per month

MIT/Apache

47KB
102 lines

🔆 superluminal-perf-rs

Build Status Crates.io Docs Contributor Covenant Embark

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

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.

Dependencies