Macro tracy_client::span_location
source · macro_rules! span_location { () => { ... }; ($name: expr) => { ... }; }
Expand description
Construct a &’static SpanLocation
.
The returned SpanLocation
is allocated statically and is cached between invocations. This
SpanLocation
will refer to the file and line at which this macro has been invoked, as well as
to the item containing this macro invocation.
The resulting value may be used as an argument for the Client::span
method.
§Example
let location: &'static tracy_client::SpanLocation = tracy_client::span_location!("some name");