pub struct MemoryReport {
pub generated_at: SystemTime,
pub total_allocations: usize,
pub total_deallocations: usize,
pub active_allocations: usize,
pub total_allocated_bytes: usize,
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
pub avg_allocation_size: f64,
pub leak_stats: LeakStats,
pub pattern_distribution: HashMap<AllocationPattern, usize>,
pub hotspots: Vec<MemoryHotspot>,
pub fragmentation_analysis: FragmentationAnalysis,
}Expand description
Memory usage report メモリ使用レポート
Fields§
§generated_at: SystemTimeReport generation timestamp レポート生成タイムスタンプ
total_allocations: usizeTotal allocations tracked 追跡された総割り当て数
total_deallocations: usizeTotal deallocations tracked 追跡された総解放数
active_allocations: usizeCurrent active allocations 現在のアクティブ割り当て数
total_allocated_bytes: usizeTotal memory allocated (bytes) 総割り当てメモリ(バイト)
current_memory_usage: usizeCurrent memory usage (bytes) 現在のメモリ使用量(バイト)
peak_memory_usage: usizePeak memory usage (bytes) ピークメモリ使用量(バイト)
avg_allocation_size: f64Average allocation size 平均割り当てサイズ
leak_stats: LeakStatsMemory leak statistics メモリリーク統計
pattern_distribution: HashMap<AllocationPattern, usize>Allocation pattern distribution 割り当てパターン分布
hotspots: Vec<MemoryHotspot>Top memory hotspots トップメモリホットスポット
fragmentation_analysis: FragmentationAnalysisMemory fragmentation analysis メモリ断片化分析
Trait Implementations§
Source§impl Clone for MemoryReport
impl Clone for MemoryReport
Source§fn clone(&self) -> MemoryReport
fn clone(&self) -> MemoryReport
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 MemoryReport
impl Debug for MemoryReport
Auto Trait Implementations§
impl Freeze for MemoryReport
impl RefUnwindSafe for MemoryReport
impl Send for MemoryReport
impl Sync for MemoryReport
impl Unpin for MemoryReport
impl UnwindSafe for MemoryReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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