pub struct BatchProcessor { /* private fields */ }Expand description
High-performance batch processor for unsafe/FFI data
Implementations§
Source§impl BatchProcessor
impl BatchProcessor
Sourcepub fn with_config(config: BatchProcessorConfig) -> Self
pub fn with_config(config: BatchProcessorConfig) -> Self
Create a new batch processor with custom configuration
Sourcepub fn process_unsafe_allocations(
&self,
allocations: &[EnhancedAllocationInfo],
) -> TrackingResult<ProcessedUnsafeData>
pub fn process_unsafe_allocations( &self, allocations: &[EnhancedAllocationInfo], ) -> TrackingResult<ProcessedUnsafeData>
Process unsafe allocations in batches
Sourcepub fn process_ffi_allocations(
&self,
allocations: &[EnhancedAllocationInfo],
) -> TrackingResult<ProcessedFFIData>
pub fn process_ffi_allocations( &self, allocations: &[EnhancedAllocationInfo], ) -> TrackingResult<ProcessedFFIData>
Process FFI allocations in batches
Sourcepub fn process_boundary_events(
&self,
allocations: &[EnhancedAllocationInfo],
) -> TrackingResult<ProcessedBoundaryData>
pub fn process_boundary_events( &self, allocations: &[EnhancedAllocationInfo], ) -> TrackingResult<ProcessedBoundaryData>
Process boundary events in batches
Sourcepub fn get_metrics(&self) -> TrackingResult<BatchProcessingMetrics>
pub fn get_metrics(&self) -> TrackingResult<BatchProcessingMetrics>
Get current processing metrics
Sourcepub fn reset_metrics(&self) -> TrackingResult<()>
pub fn reset_metrics(&self) -> TrackingResult<()>
Reset processing metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchProcessor
impl !RefUnwindSafe for BatchProcessor
impl Send for BatchProcessor
impl Sync for BatchProcessor
impl Unpin for BatchProcessor
impl !UnwindSafe for BatchProcessor
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