pub struct FrameProfile {
pub audio_analyze: Duration,
pub spectrum_fft: Duration,
pub per_frame_eval: Duration,
pub state_sync: Duration,
pub warp_compute: Duration,
pub waveform_samples: Duration,
pub custom_waves: Duration,
pub custom_shapes: Duration,
pub gpu_render: Duration,
pub total: Duration,
}Expand description
Per-phase wall-clock breakdown for one MilkEngine::update call.
Populated when EngineConfig::profile is true; exposed by
MilkEngine::last_profile() for the bench tool and any future overlay.
Fields§
§audio_analyze: Duration§spectrum_fft: Duration§per_frame_eval: Duration§state_sync: Duration§warp_compute: Duration§waveform_samples: Duration§custom_waves: Duration§custom_shapes: Duration§gpu_render: Duration§total: DurationTrait Implementations§
Source§impl Clone for FrameProfile
impl Clone for FrameProfile
Source§fn clone(&self) -> FrameProfile
fn clone(&self) -> FrameProfile
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 FrameProfile
impl Debug for FrameProfile
Source§impl Default for FrameProfile
impl Default for FrameProfile
Source§fn default() -> FrameProfile
fn default() -> FrameProfile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameProfile
impl RefUnwindSafe for FrameProfile
impl Send for FrameProfile
impl Sync for FrameProfile
impl Unpin for FrameProfile
impl UnwindSafe for FrameProfile
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().