#performance #user-events #profiler #api-bindings #superluminal

superluminal-perf

Superluminal Performance API for adding user events to profiler captures

4 releases (2 breaking)

0.3.0 Jun 15, 2023
0.2.0 Jan 9, 2023
0.1.1 May 16, 2020
0.1.0 Feb 25, 2020

#103 in Profiling

Download history 88/week @ 2023-12-18 35/week @ 2023-12-25 35/week @ 2024-01-01 59/week @ 2024-01-08 63/week @ 2024-01-15 34/week @ 2024-01-22 86/week @ 2024-01-29 144/week @ 2024-02-05 124/week @ 2024-02-12 261/week @ 2024-02-19 144/week @ 2024-02-26 234/week @ 2024-03-04 367/week @ 2024-03-11 132/week @ 2024-03-18 126/week @ 2024-03-25 234/week @ 2024-04-01

885 downloads per month
Used in 9 crates (3 directly)

MIT/Apache

90KB
105 lines

🔆 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.2.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.

Dependencies