pub struct ExecutionTimingDto {
pub processor_name: String,
pub execution_us_per_sample: f64,
}Expand description
CPU execution cost contributed by one processor in the DSP signal chain.
The value is the net added cost — a zero-work passthrough baseline has already been
subtracted — so it represents only the work the processor itself performs, not
timer-call or loop overhead. The result is clamped to ≥ 0 to avoid negative
readings from measurement noise.
Fields§
§processor_name: StringName of the DSP processor (e.g. "Gain", "Tone Stack", "Master Volume").
execution_us_per_sample: f64Net CPU cost of this processor in microseconds per sample (µs/sample).
Multiply by the sample rate (Hz) to obtain the percentage of a 1-second CPU budget consumed by this processor alone.
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionTimingDto
impl Clone for ExecutionTimingDto
Source§fn clone(&self) -> ExecutionTimingDto
fn clone(&self) -> ExecutionTimingDto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionTimingDto
impl Debug for ExecutionTimingDto
Source§impl<'de> Deserialize<'de> for ExecutionTimingDto
impl<'de> Deserialize<'de> for ExecutionTimingDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionTimingDto
impl RefUnwindSafe for ExecutionTimingDto
impl Send for ExecutionTimingDto
impl Sync for ExecutionTimingDto
impl Unpin for ExecutionTimingDto
impl UnsafeUnpin for ExecutionTimingDto
impl UnwindSafe for ExecutionTimingDto
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more