Crates.io | superluminal-perf |
lib.rs | superluminal-perf |
version | 0.3.0 |
source | src |
created_at | 2020-02-25 15:47:12.651881 |
updated_at | 2023-06-15 16:06:19.279696 |
description | Superluminal Performance API for adding user events to profiler captures |
homepage | |
repository | https://github.com/EmbarkStudios/superluminal-perf-rs |
max_upload_size | |
id | 212441 |
size | 37,455 |
Superluminal Performance profiler Rust API for adding user events to captures.
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.
We welcome community contributions to this project.
Please read our Contributor Guide for more information on how to get started.
Licensed under either of
at your option.
Note that the Superluminal Performance C API, that this crate uses and embeds, is licensed under BSD.
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.