binius_field/
tracing.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2024-2025 Irreducible Inc.

/// Trace multiplication event
macro_rules! trace_multiplication {
    ($name: ty) => {
        #[cfg(feature = "trace_multiplications")]
        {
            tracing::event!(name: "mul", tracing::Level::TRACE, {lhs = stringify!($name), rhs = stringify!($name)});
        }
    };
    ($lhs: ty, $rhs: ty) => {
        #[cfg(feature = "trace_multiplications")]
        {
            tracing::event!(name: "mul", tracing::Level::TRACE, {lhs = stringify!($lhs), rhs = stringify!($rhs)});
        }
    };
}

pub(crate) use trace_multiplication;