tracy-gizmos-attributes

Crates.iotracy-gizmos-attributes
lib.rstracy-gizmos-attributes
version0.0.3
sourcesrc
created_at2024-01-19 20:31:56.978738
updated_at2024-01-31 19:10:58.348534
descriptionProcedural macro attributes for automatic function instrumentation
homepage
repositoryhttps://github.com/den-mentiei/tracy-gizmos
max_upload_size
id1105707
size13,277
Denys Mentiei (den-mentiei)

documentation

README

🧰 tracy-gizmos-attributes

Latest Version MIT licensed Apache licensed API

Overview

A procedural macro attribute for instrumenting functions with tracy-gizmos zones.

Usage

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
}

License

Licensed under either of

at your option.

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.

Commit count: 0

cargo fmt