Crates.io | tracy-gizmos-attributes |
lib.rs | tracy-gizmos-attributes |
version | 0.0.3 |
source | src |
created_at | 2024-01-19 20:31:56.978738 |
updated_at | 2024-01-31 19:10:58.348534 |
description | Procedural macro attributes for automatic function instrumentation |
homepage | |
repository | https://github.com/den-mentiei/tracy-gizmos |
max_upload_size | |
id | 1105707 |
size | 13,277 |
A procedural macro attribute for instrumenting functions with
tracy-gizmos
zones.
In the Cargo.toml
:
[dependencies]
tracy-gizmos-attributes = "0.0.1"
The #[instrument]
attribute can now be added to a function to
automatically create and enter a tracy-gizmos
zone when that
function is called. For example:
#[tracy_gizmos_attributes::instrument]
fn work() {
// do stuff
}
Licensed under either of
at your option.
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.