[−][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_allocates(&self) -> u64
[src]
Returns the total number of alloc
calls.
pub fn num_allocates_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_deallocates(&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: ReallocPlacementFilter,
result: impl Into<ResultFilter>
) -> u64
[src]
&self,
placement: 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]
pub fn after_allocate(
&self,
_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_allocate_zeroed(
&self,
_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_allocate_all(&self, result: Result<NonNull<[u8]>, AllocError>)
[src]
pub fn after_allocate_all_zeroed(
&self,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn before_deallocate(&self, _ptr: NonNull<u8>, _layout: Layout)
[src]
pub fn before_deallocate_all(&self)
[src]
pub fn after_grow(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_grow_zeroed(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_grow_in_place(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
pub fn after_grow_in_place_zeroed(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
pub fn after_shrink(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<NonNull<[u8]>, AllocError>
)
pub fn after_shrink_in_place(
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
[src]
&self,
_ptr: NonNull<u8>,
_old_layout: Layout,
_new_layout: Layout,
result: Result<usize, AllocError>
)
pub fn after_owns(&self, success: bool)
[src]
pub fn before_allocate(&self, layout: Layout)
[src]
pub fn before_allocate_zeroed(&self, layout: Layout)
[src]
pub fn before_allocate_all(&self)
[src]
pub fn before_allocate_all_zeroed(&self)
[src]
pub fn after_deallocate(&self, ptr: NonNull<u8>, layout: Layout)
[src]
pub fn after_deallocate_all(&self)
[src]
pub fn before_grow(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_zeroed(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_in_place(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_grow_in_place_zeroed(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_shrink(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_shrink_in_place(
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
[src]
&self,
ptr: NonNull<u8>,
old_layout: Layout,
new_layout: Layout
)
pub fn before_owns(&self)
[src]
pub fn by_ref(&self) -> &Self
[src]
impl Debug for FilteredAtomicCounter
[src]
impl Default for FilteredAtomicCounter
[src]
pub fn default() -> FilteredAtomicCounter
[src]
impl PartialEq<FilteredAtomicCounter> for FilteredCounter
[src]
pub fn eq(&self, other: &FilteredAtomicCounter) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<FilteredAtomicCounter> for FilteredAtomicCounter
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<FilteredCounter> for FilteredAtomicCounter
[src]
pub fn eq(&self, other: &FilteredCounter) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,