#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "server")]
mod server;
#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "server")]
pub use server::Profiler;
pub mod reexports {
#[cfg(not(target_arch = "wasm32"))]
pub use puffin;
}
#[macro_export]
macro_rules! profile_function {
($($arg: tt)*) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_function!($($arg)*);
};
}
#[macro_export]
macro_rules! profile_function_if {
($($arg: tt)*) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_function_if!($($arg)*);
};
}
#[macro_export]
macro_rules! profile_scope {
($($arg: tt)*) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_scope!($($arg)*);
};
}
#[macro_export]
macro_rules! profile_scope_if {
($($arg: tt)*) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_scope_if!($($arg)*);
};
}
#[macro_export]
macro_rules! profile_wait {
() => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_scope!("[WAIT]");
};
($id:expr) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_scope!(concat!("[WAIT] ", $id));
};
($id:expr, $data:expr) => {
#[cfg(not(target_arch = "wasm32"))]
$crate::reexports::puffin::profile_scope!(concat!("[WAIT] ", $id), $data);
};
}