pub use cstr;
pub use fxfs_trace_macros::*;
pub use storage_trace::{self, TraceFutureExt};
#[macro_export]
macro_rules! duration {
($name:expr $(, $key:expr => $val:expr)*) => {
$crate::storage_trace::duration!(c"fxfs", $name $(,$key => $val)*);
}
}
#[macro_export]
macro_rules! flow_begin {
($name:expr, $flow_id:expr $(, $key:expr => $val:expr)*) => {
$crate::storage_trace::flow_begin!(c"fxfs", $name, $flow_id $(,$key => $val)*);
}
}
#[macro_export]
macro_rules! flow_step {
($name:expr, $flow_id:expr $(, $key:expr => $val:expr)*) => {
$crate::storage_trace::flow_step!(c"fxfs", $name, $flow_id $(,$key => $val)*);
}
}
#[macro_export]
macro_rules! flow_end {
($name:expr, $flow_id:expr $(, $key:expr => $val:expr)*) => {
$crate::storage_trace::flow_end!(c"fxfs", $name, $flow_id $(,$key => $val)*);
}
}
#[macro_export]
macro_rules! trace_future_args {
($name:expr $(, $key:expr => $val:expr)*) => {
$crate::storage_trace::trace_future_args!(c"fxfs", $name $(,$key => $val)*);
};
}