pub enum AllocationFilter {
Show 16 variants
PtrRange(usize, usize),
SizeRange(usize, usize),
TimestampRange(u64, u64),
ThreadEquals(String),
ThreadContains(String),
TypeEquals(String),
TypeContains(String),
VarNameContains(String),
ScopeNameContains(String),
HasStackTrace,
NoStackTrace,
LeakedOnly,
NotLeaked,
MinBorrowCount(usize),
MaxBorrowCount(usize),
LifetimeRange(u64, u64),
}
Expand description
Filter conditions that can be applied during selective reading
Variants§
PtrRange(usize, usize)
Filter by pointer value range
SizeRange(usize, usize)
Filter by allocation size range
TimestampRange(u64, u64)
Filter by timestamp range
ThreadEquals(String)
Filter by exact thread ID match
ThreadContains(String)
Filter by thread ID pattern (contains)
TypeEquals(String)
Filter by exact type name match
TypeContains(String)
Filter by type name pattern (contains)
VarNameContains(String)
Filter by variable name pattern (contains)
ScopeNameContains(String)
Filter by scope name pattern (contains)
HasStackTrace
Filter records that have stack trace information
NoStackTrace
Filter records that don’t have stack trace information
LeakedOnly
Filter leaked allocations only
NotLeaked
Filter non-leaked allocations only
MinBorrowCount(usize)
Filter by minimum borrow count
MaxBorrowCount(usize)
Filter by maximum borrow count
LifetimeRange(u64, u64)
Filter by lifetime range (in milliseconds)
Implementations§
Source§impl AllocationFilter
impl AllocationFilter
Sourcepub fn supports_index_prefiltering(&self) -> bool
pub fn supports_index_prefiltering(&self) -> bool
Check if this filter can be applied using index pre-filtering
Sourcepub fn matches(&self, allocation: &AllocationInfo) -> bool
pub fn matches(&self, allocation: &AllocationInfo) -> bool
Apply this filter to an allocation record
Trait Implementations§
Source§impl Clone for AllocationFilter
impl Clone for AllocationFilter
Source§fn clone(&self) -> AllocationFilter
fn clone(&self) -> AllocationFilter
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 AllocationFilter
impl RefUnwindSafe for AllocationFilter
impl Send for AllocationFilter
impl Sync for AllocationFilter
impl Unpin for AllocationFilter
impl UnwindSafe for AllocationFilter
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> 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