Crate chronograph_macros

Source
Expand description

Macros for convenient chronograph span operations.

These macros provide ergonomic ways to interact with chronograph’s thread-local spans. They wrap the thread-local span functionality to make it easier to use in your code.

Macros§

end_span
End the current thread-local span, dropping it from memory.
record_instant
Record an instant datapoint in the current thread-local span.
record_unix_time
Record a unix time datapoint in the current thread-local span.
record_value
Record a value datapoint in the current thread-local span.
start_span
Start a new thread-local span using the global chronograph.
take_span
Take the current thread-local span, leaving None in its place.