macro_rules! trace {
($event:expr) => { ... };
}Expand description
Emits a RosaceTrace event — zero cost in production.
In debug builds, forwards the event to TRACING_BUS. In release builds,
the entire call is compiled away with no overhead.
§Example
use rosace_trace::{trace, event::{RosaceTrace, ComponentId}, location};
trace!(RosaceTrace::ComponentUnmount {
id: ComponentId(1),
name: "MyComponent",
});