[−][src]Struct alloc_compose::stats::FilteredAtomicCounter
An atomic counter for collectiong and filtering statistics which can be shared between threads.
Implementations
impl FilteredAtomicCounter
[src][−]
pub fn num_allocs(&self) -> u64
[src][−]
Returns the total number of alloc
calls.
pub fn num_allocs_filter(
&self,
init: impl Into<AllocInitFilter>,
result: impl Into<ResultFilter>
) -> u64
[src][−]
&self,
init: impl Into<AllocInitFilter>,
result: impl Into<ResultFilter>
) -> u64
Returns the filtered number of alloc
calls.
pub fn num_deallocs(&self) -> u64
[src][−]
Returns the total number of dealloc
calls.
pub fn num_grows(&self) -> u64
[src][−]
Returns the total number of grow
calls.
pub fn num_grows_filter(
&self,
placement: impl Into<ReallocPlacementFilter>,
init: impl Into<AllocInitFilter>,
result: impl Into<ResultFilter>
) -> u64
[src][−]
&self,
placement: impl Into<ReallocPlacementFilter>,
init: impl Into<AllocInitFilter>,
result: impl Into<ResultFilter>
) -> u64
Returns the filtered number of grow
calls.
pub fn num_shrinks(&self) -> u64
[src][−]
Returns the total number of shrink
calls.
pub fn num_shrinks_filter(
&self,
placement: impl Into<ReallocPlacementFilter>,
result: impl Into<ResultFilter>
) -> u64
[src][−]
&self,
placement: impl Into<ReallocPlacementFilter>,
result: impl Into<ResultFilter>
) -> u64
Returns the filtered number of shrink
calls.
pub fn num_owns(&self) -> u64
[src][−]
Returns the total number of owns
calls.
pub fn num_owns_filter(&self, success: bool) -> u64
[src][−]
Returns the filtered number of owns
calls.
Trait Implementations
impl CallbackRef for FilteredAtomicCounter
[src][+]
impl Debug for FilteredAtomicCounter
[src][+]
impl Default for FilteredAtomicCounter
[src][+]
impl PartialEq<FilteredAtomicCounter> for FilteredCounter
[src][+]
impl PartialEq<FilteredAtomicCounter> for FilteredAtomicCounter
[src][+]
impl PartialEq<FilteredCounter> for FilteredAtomicCounter
[src][+]
Auto Trait Implementations
impl Send for FilteredAtomicCounter
impl Sync for FilteredAtomicCounter
impl Unpin for FilteredAtomicCounter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,