pub struct UnifiedBackend { /* private fields */ }
Expand description
Main unified backend that orchestrates all memory tracking strategies Acts as the central hub for routing tracking requests to appropriate handlers
Implementations§
Source§impl UnifiedBackend
impl UnifiedBackend
Sourcepub fn initialize(config: BackendConfig) -> Result<Self, BackendError>
pub fn initialize(config: BackendConfig) -> Result<Self, BackendError>
Initialize unified backend with configuration Performs environment detection and strategy selection
Sourcepub fn detect_environment() -> Result<RuntimeEnvironment, BackendError>
pub fn detect_environment() -> Result<RuntimeEnvironment, BackendError>
Detect current runtime environment characteristics Analyzes thread count, async runtime presence, and execution patterns
Sourcepub fn start_tracking(&mut self) -> Result<TrackingSession, BackendError>
pub fn start_tracking(&mut self) -> Result<TrackingSession, BackendError>
Start active memory tracking session Returns session handle for controlling tracking lifecycle
Sourcepub fn collect_data(&self) -> Result<MemoryAnalysisData, BackendError>
pub fn collect_data(&self) -> Result<MemoryAnalysisData, BackendError>
Collect all tracking data from active session Aggregates data from all tracking sources into unified format
Sourcepub fn shutdown(self) -> Result<MemoryAnalysisData, BackendError>
pub fn shutdown(self) -> Result<MemoryAnalysisData, BackendError>
Shutdown backend and finalize all tracking
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnifiedBackend
impl RefUnwindSafe for UnifiedBackend
impl Send for UnifiedBackend
impl Sync for UnifiedBackend
impl Unpin for UnifiedBackend
impl UnwindSafe for UnifiedBackend
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