pub struct PerformanceStats {Show 13 fields
pub avg_cpu: f64,
pub peak_cpu: f64,
pub avg_memory: u64,
pub peak_memory: u64,
pub avg_throughput: u64,
pub peak_throughput: u64,
pub avg_latency: u64,
pub p95_latency: u64,
pub p99_latency: u64,
pub avg_temperature: Option<f32>,
pub peak_temperature: Option<f32>,
pub sample_count: usize,
pub duration: Duration,
}Expand description
Performance statistics
Fields§
§avg_cpu: f64Average CPU usage
peak_cpu: f64Peak CPU usage
avg_memory: u64Average memory usage (bytes)
peak_memory: u64Peak memory usage (bytes)
avg_throughput: u64Average throughput (bytes/sec)
peak_throughput: u64Peak throughput (bytes/sec)
avg_latency: u64Average latency (microseconds)
p95_latency: u6495th percentile latency (microseconds)
p99_latency: u6499th percentile latency (microseconds)
avg_temperature: Option<f32>Average temperature (Celsius)
peak_temperature: Option<f32>Peak temperature (Celsius)
sample_count: usizeNumber of samples
duration: DurationProfiling duration
Trait Implementations§
Source§impl Clone for PerformanceStats
impl Clone for PerformanceStats
Source§fn clone(&self) -> PerformanceStats
fn clone(&self) -> PerformanceStats
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 PerformanceStats
impl RefUnwindSafe for PerformanceStats
impl Send for PerformanceStats
impl Sync for PerformanceStats
impl Unpin for PerformanceStats
impl UnwindSafe for PerformanceStats
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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