pub struct AllocationEvent {
pub id: u64,
pub timestamp: Instant,
pub requested_size: usize,
pub allocated_size: usize,
pub alignment: usize,
pub source: Option<String>,
pub device_id: usize,
pub pool_id: Option<usize>,
pub is_active: bool,
pub deallocated_at: Option<Instant>,
pub lifetime_us: Option<u64>,
}Expand description
Detailed allocation event for tracing
Fields§
§id: u64Unique allocation ID
timestamp: InstantTimestamp when allocated
requested_size: usizeRequested size in bytes
allocated_size: usizeActual allocated size in bytes (may be larger due to alignment)
alignment: usizeAllocation alignment requirement
source: Option<String>Stack trace or allocation source (for debugging)
device_id: usizeDevice ID where allocated
pool_id: Option<usize>Pool ID within device
is_active: boolWhether this is still active
deallocated_at: Option<Instant>When deallocated (if applicable)
lifetime_us: Option<u64>Lifetime in microseconds (if deallocated)
Implementations§
Trait Implementations§
Source§impl Clone for AllocationEvent
impl Clone for AllocationEvent
Auto Trait Implementations§
impl Freeze for AllocationEvent
impl RefUnwindSafe for AllocationEvent
impl Send for AllocationEvent
impl Sync for AllocationEvent
impl Unpin for AllocationEvent
impl UnsafeUnpin for AllocationEvent
impl UnwindSafe for AllocationEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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