pub struct TuiFrameMetrics {
pub frame_count: usize,
pub total_time_us: u64,
pub min_frame_us: u64,
pub max_frame_us: u64,
pub frame_times_us: Vec<u64>,
}Expand description
Metrics collected during TUI load testing
Fields§
§frame_count: usizeTotal frames rendered
total_time_us: u64Total render time in microseconds
min_frame_us: u64Minimum frame time in microseconds
max_frame_us: u64Maximum frame time in microseconds
frame_times_us: Vec<u64>Frame times for percentile calculation
Implementations§
Source§impl TuiFrameMetrics
impl TuiFrameMetrics
Sourcepub fn avg_frame_ms(&self) -> f64
pub fn avg_frame_ms(&self) -> f64
Get average frame time in milliseconds
Sourcepub fn min_frame_ms(&self) -> f64
pub fn min_frame_ms(&self) -> f64
Get minimum frame time in milliseconds
Sourcepub fn max_frame_ms(&self) -> f64
pub fn max_frame_ms(&self) -> f64
Get maximum frame time in milliseconds
Sourcepub fn p50_frame_ms(&self) -> f64
pub fn p50_frame_ms(&self) -> f64
Get p50 (median) frame time in milliseconds
Sourcepub fn p95_frame_ms(&self) -> f64
pub fn p95_frame_ms(&self) -> f64
Get p95 frame time in milliseconds
Sourcepub fn p99_frame_ms(&self) -> f64
pub fn p99_frame_ms(&self) -> f64
Get p99 frame time in milliseconds
Sourcepub fn percentile(&self, p: u8) -> f64
pub fn percentile(&self, p: u8) -> f64
Get percentile frame time in milliseconds
Trait Implementations§
Source§impl Clone for TuiFrameMetrics
impl Clone for TuiFrameMetrics
Source§fn clone(&self) -> TuiFrameMetrics
fn clone(&self) -> TuiFrameMetrics
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 TuiFrameMetrics
impl Debug for TuiFrameMetrics
Source§impl Default for TuiFrameMetrics
impl Default for TuiFrameMetrics
Source§fn default() -> TuiFrameMetrics
fn default() -> TuiFrameMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TuiFrameMetrics
impl RefUnwindSafe for TuiFrameMetrics
impl Send for TuiFrameMetrics
impl Sync for TuiFrameMetrics
impl Unpin for TuiFrameMetrics
impl UnsafeUnpin for TuiFrameMetrics
impl UnwindSafe for TuiFrameMetrics
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,
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 moreSource§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().