pub struct ContainerConfig {
pub time_window_ns: u64,
pub size_ratio: usize,
pub lookahead: usize,
}Expand description
Configuration for container relation detection.
Controls the heuristic thresholds used to infer Contains relationships
between Container and HeapOwner allocations.
§Fields
-
time_window_ns- Maximum time difference in nanoseconds between container and contained object allocation (default: 1ms = 1,000,000ns). -
size_ratio- Maximum size ratio between contained object and container. Prevents connecting containers to unusually large objects (default: 10). -
lookahead- Number of subsequent allocations to examine for each container. Limits the search window for performance (default: 5).
Fields§
§time_window_ns: u64Maximum time difference for considered allocations (default: 1ms).
size_ratio: usizeMaximum size ratio between contained object and container (default: 10).
lookahead: usizeNumber of subsequent allocations to examine (default: 5).
Trait Implementations§
Source§impl Clone for ContainerConfig
impl Clone for ContainerConfig
Source§fn clone(&self) -> ContainerConfig
fn clone(&self) -> ContainerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContainerConfig
impl Debug for ContainerConfig
Source§impl Default for ContainerConfig
impl Default for ContainerConfig
impl Copy for ContainerConfig
Auto Trait Implementations§
impl Freeze for ContainerConfig
impl RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl UnsafeUnpin for ContainerConfig
impl UnwindSafe for ContainerConfig
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
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>
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>
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