pub struct MemoryProfilingResult {
pub operation_name: String,
pub duration: Duration,
pub peak_memory: usize,
pub memory_timeline: Vec<(Duration, usize)>,
pub final_stats: MemoryStats,
}Expand description
Results of memory profiling
Fields§
§operation_name: StringName of the operation profiled
duration: DurationTotal duration of the operation
peak_memory: usizePeak memory usage during the operation
memory_timeline: Vec<(Duration, usize)>Memory usage timeline
final_stats: MemoryStatsFinal memory statistics
Implementations§
Source§impl MemoryProfilingResult
impl MemoryProfilingResult
Sourcepub fn export_csv(&self) -> String
pub fn export_csv(&self) -> String
Export timeline data as CSV
Sourcepub fn check_memory_leaks(&self) -> Option<String>
pub fn check_memory_leaks(&self) -> Option<String>
Check for potential memory leaks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryProfilingResult
impl RefUnwindSafe for MemoryProfilingResult
impl Send for MemoryProfilingResult
impl Sync for MemoryProfilingResult
impl Unpin for MemoryProfilingResult
impl UnwindSafe for MemoryProfilingResult
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> 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