pub struct BufferedRendererStatsReader { /* private fields */ }
Expand description
Reads the statistics of an instance of BufferedRenderer in a usable way.
Implementations§
Source§impl BufferedRendererStatsReader
impl BufferedRendererStatsReader
Sourcepub fn samples(&self) -> i64
pub fn samples(&self) -> i64
The number of samples currently buffered. Can be negative if the reader is waiting for more samples.
Sourcepub fn last_samples_after_read(&self) -> i64
pub fn last_samples_after_read(&self) -> i64
The number of samples that were in the buffer after the last read.
Sourcepub fn last_request_samples(&self) -> i64
pub fn last_request_samples(&self) -> i64
The last number of samples last requested by the read command.
Sourcepub fn render_size(&self) -> usize
pub fn render_size(&self) -> usize
The number of samples to render each iteration.
Sourcepub fn average_renderer_load(&self) -> f64
pub fn average_renderer_load(&self) -> f64
The average render time percentages (0 to 1) of how long the render thread spent rendering, from the max allowed time.
Sourcepub fn last_renderer_load(&self) -> f64
pub fn last_renderer_load(&self) -> f64
The last render time percentage (0 to 1) of how long the render thread spent rendering, from the max allowed time.
Auto Trait Implementations§
impl Freeze for BufferedRendererStatsReader
impl RefUnwindSafe for BufferedRendererStatsReader
impl Send for BufferedRendererStatsReader
impl Sync for BufferedRendererStatsReader
impl Unpin for BufferedRendererStatsReader
impl UnwindSafe for BufferedRendererStatsReader
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> 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