pub struct PerformanceReport {
pub memory_stats: MemoryStats,
pub throughput_bps: f64,
pub total_bytes: u64,
pub elapsed_time: Duration,
pub total_duration: Duration,
}Expand description
Comprehensive performance report.
Fields§
§memory_stats: MemoryStatsMemory usage statistics
throughput_bps: f64Current throughput in bytes per second
total_bytes: u64Total bytes transferred
elapsed_time: DurationTotal elapsed time
total_duration: DurationAccumulated timing duration
Implementations§
Source§impl PerformanceReport
impl PerformanceReport
Sourcepub fn throughput_mbps(&self) -> f64
pub fn throughput_mbps(&self) -> f64
Get throughput in human-readable format (MB/s).
Sourcepub fn memory_usage_mb(&self) -> f64
pub fn memory_usage_mb(&self) -> f64
Get memory usage in human-readable format (MB).
Sourcepub fn peak_memory_mb(&self) -> f64
pub fn peak_memory_mb(&self) -> f64
Get peak memory usage in human-readable format (MB).
Trait Implementations§
Source§impl Clone for PerformanceReport
impl Clone for PerformanceReport
Source§fn clone(&self) -> PerformanceReport
fn clone(&self) -> PerformanceReport
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 moreAuto Trait Implementations§
impl Freeze for PerformanceReport
impl RefUnwindSafe for PerformanceReport
impl Send for PerformanceReport
impl Sync for PerformanceReport
impl Unpin for PerformanceReport
impl UnsafeUnpin for PerformanceReport
impl UnwindSafe for PerformanceReport
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