pub struct AllocationRecord {
pub id: u64,
pub size: usize,
pub allocated_at: SystemTime,
pub source_location: String,
pub call_stack: Vec<String>,
pub deallocated_at: Option<SystemTime>,
pub lifetime: Option<Duration>,
pub pattern: AllocationPattern,
}Expand description
Memory allocation record メモリ割り当て記録
Fields§
§id: u64Allocation ID (unique) 割り当てID(ユニーク)
size: usizeSize in bytes サイズ(バイト)
allocated_at: SystemTimeTimestamp when allocated 割り当て時のタイムスタンプ
source_location: StringSource location (file:line) ソース位置(ファイル:行)
call_stack: Vec<String>Call stack (simplified) コールスタック(簡略化)
deallocated_at: Option<SystemTime>Deallocation timestamp (None if still allocated) 解放タイムスタンプ(まだ割り当てられている場合はNone)
lifetime: Option<Duration>Lifetime (duration from allocation to deallocation) ライフタイム(割り当てから解放まての期間)
pattern: AllocationPatternMemory pattern classification メモリパターン分類
Trait Implementations§
Source§impl Clone for AllocationRecord
impl Clone for AllocationRecord
Source§fn clone(&self) -> AllocationRecord
fn clone(&self) -> AllocationRecord
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 AllocationRecord
impl RefUnwindSafe for AllocationRecord
impl Send for AllocationRecord
impl Sync for AllocationRecord
impl Unpin for AllocationRecord
impl UnwindSafe for AllocationRecord
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