pub struct CallStackNormalizer { /* private fields */ }
Expand description
Call stack normalizer registry
Implementations§
Source§impl CallStackNormalizer
impl CallStackNormalizer
Sourcepub fn new(config: NormalizerConfig) -> Self
pub fn new(config: NormalizerConfig) -> Self
Create new call stack normalizer
Sourcepub fn normalize_call_stack(
&self,
frames: &[StackFrame],
) -> TrackingResult<CallStackId>
pub fn normalize_call_stack( &self, frames: &[StackFrame], ) -> TrackingResult<CallStackId>
Normalize call stack and return unique ID
Sourcepub fn get_call_stack(&self, id: CallStackId) -> TrackingResult<Vec<StackFrame>>
pub fn get_call_stack(&self, id: CallStackId) -> TrackingResult<Vec<StackFrame>>
Get call stack by ID
Sourcepub fn increment_ref_count(&self, id: CallStackId) -> TrackingResult<()>
pub fn increment_ref_count(&self, id: CallStackId) -> TrackingResult<()>
Increment reference count for call stack
Sourcepub fn decrement_ref_count(&self, id: CallStackId) -> TrackingResult<()>
pub fn decrement_ref_count(&self, id: CallStackId) -> TrackingResult<()>
Decrement reference count for call stack
Sourcepub fn cleanup_registry(&self) -> TrackingResult<usize>
pub fn cleanup_registry(&self) -> TrackingResult<usize>
Perform manual cleanup of unused call stacks
Sourcepub fn get_stats(&self) -> NormalizerStats
pub fn get_stats(&self) -> NormalizerStats
Get normalizer statistics
Sourcepub fn get_registry_size(&self) -> usize
pub fn get_registry_size(&self) -> usize
Get registry size
Sourcepub fn clear_registry(&self)
pub fn clear_registry(&self)
Clear all call stacks (for testing)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallStackNormalizer
impl RefUnwindSafe for CallStackNormalizer
impl Send for CallStackNormalizer
impl Sync for CallStackNormalizer
impl Unpin for CallStackNormalizer
impl UnwindSafe for CallStackNormalizer
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