pub struct PerformanceTimeSeries {
pub cpu_usage: Vec<f64>,
pub memory_usage: Vec<u64>,
pub io_operations: Vec<u64>,
pub network_bytes: Vec<u64>,
pub timestamps: Vec<u64>,
pub thread_cpu_breakdown: HashMap<usize, Vec<f64>>,
pub thread_memory_breakdown: HashMap<usize, Vec<u64>>,
}
Expand description
Real-time performance metrics collection
Fields§
§cpu_usage: Vec<f64>
§memory_usage: Vec<u64>
§io_operations: Vec<u64>
§network_bytes: Vec<u64>
§timestamps: Vec<u64>
§thread_cpu_breakdown: HashMap<usize, Vec<f64>>
§thread_memory_breakdown: HashMap<usize, Vec<u64>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceTimeSeries
impl RefUnwindSafe for PerformanceTimeSeries
impl Send for PerformanceTimeSeries
impl Sync for PerformanceTimeSeries
impl Unpin for PerformanceTimeSeries
impl UnwindSafe for PerformanceTimeSeries
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> 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