#[cfg(feature = "tracy")]
#[macro_export]
macro_rules! tracy_zone {
($name:expr) => {
$crate::_tracy_client::span!($name, 0)
};
($name:expr, $text:expr) => {{
let mut span = $crate::_tracy_client::span!($name, 0);
span.emit_text($text);
span
}};
}
#[cfg(not(feature = "tracy"))]
#[macro_export]
macro_rules! tracy_zone {
($name:expr) => {{
let _ = $name;
$crate::tracy::NoopZone
}};
($name:expr, $text:expr) => {{
let _ = ($name, $text);
$crate::tracy::NoopZone
}};
}
#[cfg(feature = "tracy")]
#[macro_export]
macro_rules! tracy_frame_mark {
() => {
$crate::_tracy_client::frame_mark()
};
}
#[cfg(not(feature = "tracy"))]
#[macro_export]
macro_rules! tracy_frame_mark {
() => {};
}
#[cfg(feature = "tracy")]
#[macro_export]
macro_rules! tracy_plot {
($name:expr, $value:expr) => {
$crate::_tracy_client::plot!($name, $value)
};
}
#[cfg(not(feature = "tracy"))]
#[macro_export]
macro_rules! tracy_plot {
($name:expr, $value:expr) => {};
}
#[cfg(not(feature = "tracy"))]
pub struct NoopZone;