pub struct FilterBuilder<'a> { /* private fields */ }Expand description
Filter builder for MemoryView.
Implementations§
Source§impl<'a> FilterBuilder<'a>
impl<'a> FilterBuilder<'a>
Sourcepub fn new(view: &'a MemoryView) -> Self
pub fn new(view: &'a MemoryView) -> Self
Create new filter builder.
Sourcepub fn by_size_range(self, min: usize, max: usize) -> Self
pub fn by_size_range(self, min: usize, max: usize) -> Self
Filter by size range [min, max].
Sourcepub fn by_address_range(self, min: u64, max: u64) -> Self
pub fn by_address_range(self, min: u64, max: u64) -> Self
Filter by address range [min, max].
Sourcepub fn by_min_size(self, min: usize) -> Self
pub fn by_min_size(self, min: usize) -> Self
Filter by minimum size.
Sourcepub fn by_max_size(self, max: usize) -> Self
pub fn by_max_size(self, max: usize) -> Self
Filter by maximum size.
Sourcepub fn push(self, filter: ViewFilter) -> Self
pub fn push(self, filter: ViewFilter) -> Self
Push a filter to the filter chain.
Sourcepub fn apply(&self) -> Vec<&ActiveAllocation>
pub fn apply(&self) -> Vec<&ActiveAllocation>
Apply filters and return filtered allocations.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Apply filters and return total size.
Sourcepub fn thread_ids(&self) -> Vec<u64>
pub fn thread_ids(&self) -> Vec<u64>
Get unique thread IDs after filtering.
Sourcepub fn type_names(&self) -> Vec<String>
pub fn type_names(&self) -> Vec<String>
Get unique type names after filtering.
Auto Trait Implementations§
impl<'a> Freeze for FilterBuilder<'a>
impl<'a> RefUnwindSafe for FilterBuilder<'a>
impl<'a> Send for FilterBuilder<'a>
impl<'a> Sync for FilterBuilder<'a>
impl<'a> Unpin for FilterBuilder<'a>
impl<'a> UnsafeUnpin for FilterBuilder<'a>
impl<'a> UnwindSafe for FilterBuilder<'a>
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> 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