pub struct StressReport {
pub frames: Vec<FrameProfile>,
pub cycles_completed: u32,
pub total_passed: u32,
pub total_failed: u32,
pub anomalies: Vec<Anomaly>,
}Expand description
Cumulative stress test report
Fields§
§frames: Vec<FrameProfile>All frame profiles
cycles_completed: u32Total cycles completed
total_passed: u32Total tests passed across all cycles
total_failed: u32Total tests failed across all cycles
anomalies: Vec<Anomaly>Detected anomalies
Implementations§
Source§impl StressReport
impl StressReport
Sourcepub fn mean_frame_time_ms(&self) -> f64
pub fn mean_frame_time_ms(&self) -> f64
Calculate mean frame time in milliseconds
Sourcepub fn timing_variance(&self) -> f64
pub fn timing_variance(&self) -> f64
Calculate timing variance (coefficient of variation)
Sourcepub fn max_frame_time_ms(&self) -> u64
pub fn max_frame_time_ms(&self) -> u64
Calculate max frame time
Sourcepub fn add_frame(&mut self, profile: FrameProfile)
pub fn add_frame(&mut self, profile: FrameProfile)
Add a frame to the report
Trait Implementations§
Source§impl Clone for StressReport
impl Clone for StressReport
Source§fn clone(&self) -> StressReport
fn clone(&self) -> StressReport
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 StressReport
impl Debug for StressReport
Source§impl Default for StressReport
impl Default for StressReport
Source§fn default() -> StressReport
fn default() -> StressReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StressReport
impl RefUnwindSafe for StressReport
impl Send for StressReport
impl Sync for StressReport
impl Unpin for StressReport
impl UnsafeUnpin for StressReport
impl UnwindSafe for StressReport
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