pub struct HybridStrategy { /* private fields */ }
Expand description
Hybrid memory tracking strategy Combines both thread-local and async tracking capabilities Optimized for applications mixing traditional threads with async tasks
Implementations§
Trait Implementations§
Source§impl Default for HybridStrategy
impl Default for HybridStrategy
Source§impl MemoryTracker for HybridStrategy
impl MemoryTracker for HybridStrategy
Source§fn initialize(&mut self, config: TrackerConfig) -> Result<(), TrackerError>
fn initialize(&mut self, config: TrackerConfig) -> Result<(), TrackerError>
Initialize both tracking components
Source§fn start_tracking(&mut self) -> Result<(), TrackerError>
fn start_tracking(&mut self) -> Result<(), TrackerError>
Start both tracking components
Source§fn stop_tracking(&mut self) -> Result<Vec<u8>, TrackerError>
fn stop_tracking(&mut self) -> Result<Vec<u8>, TrackerError>
Stop both components and merge data
Source§fn get_statistics(&self) -> TrackerStatistics
fn get_statistics(&self) -> TrackerStatistics
Get combined statistics from both components
Source§fn tracker_type(&self) -> TrackerType
fn tracker_type(&self) -> TrackerType
Return hybrid tracker type
Auto Trait Implementations§
impl Freeze for HybridStrategy
impl RefUnwindSafe for HybridStrategy
impl Send for HybridStrategy
impl Sync for HybridStrategy
impl Unpin for HybridStrategy
impl UnwindSafe for HybridStrategy
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