#[macro_export]
macro_rules! bench_sbf_start {
($custom_msg:literal) => {
#[cfg(all(target_os = "solana", feature = "bench-sbf"))]
{
light_heap::GLOBAL_ALLOCATOR
.log_total_heap(format!("{}_start_bench_cu", $custom_msg).as_str());
anchor_lang::solana_program::log::sol_log_compute_units();
}
};
}
#[macro_export]
macro_rules! bench_sbf_end {
($custom_msg:literal) => {
#[cfg(all(target_os = "solana", feature = "bench-sbf"))]
{
light_heap::GLOBAL_ALLOCATOR
.log_total_heap(format!("{}_end_bench_cu", $custom_msg).as_str());
anchor_lang::solana_program::log::sol_log_compute_units();
}
};
}