Trait async_alloc_counter::TraceAlloc [−][src]
pub trait TraceAlloc: Sized {
fn count_allocations(self) -> TraceAllocator<Self>ⓘNotable traits for TraceAllocator<T>impl<T: Future> Future for TraceAllocator<T> type Output = (usize, T::Output); { ... }
}Expand description
measure allocations for a future
Provided methods
fn count_allocations(self) -> TraceAllocator<Self>ⓘNotable traits for TraceAllocator<T>impl<T: Future> Future for TraceAllocator<T> type Output = (usize, T::Output);
fn count_allocations(self) -> TraceAllocator<Self>ⓘNotable traits for TraceAllocator<T>impl<T: Future> Future for TraceAllocator<T> type Output = (usize, T::Output);
Notable traits for TraceAllocator<T>
impl<T: Future> Future for TraceAllocator<T> type Output = (usize, T::Output);Wraps the future and returns a new one that will resolve
to (max allocations, future result)
You can measure multiple nested futures