rust_tracy_client
rust_tracy_client copied to clipboard
Proc macro attributes for instrumentation?
Thanks for making this crate. Is it possible to use proc macro attributes like this with this crate? :) https://kanejaku.org/posts/2020/10/tracy-profiler-zone-scoped-in-rust/
There is an implementation of this in the profiling crate (which works with this crate): https://crates.io/crates/profiling
If there is interest in implementing this in this crate directly, feel free to "steal" this code :D It's pretty small and would allow more customization (like supporting custom scope colors.) The most annoying thing about it is that it requires a separate procmacro-specific crate. https://github.com/aclysma/profiling/blob/master/profiling-procmacros/src/lib.rs
I'm happy to accept contributions, but overall this is handled through the more broadly applicable ecosystem tooling (tracing, profiling, etc.)