Skip to main content

Module stats

Module stats 

Source
Expand description

Contains types for inspecting memory usage in bump allocators.

This module defines both generic types like Stats and type-erased counterparts prefixed with Any*. The generic types are slightly more efficient to use. You can turn the generic types into their Any* variants using from and into.

The Any* types are returned by the BumpAllocatorCore::any_stats trait whereas Stats is returned from Bump(Scope)::stats.

Structsยง

AnyChunk
Refers to a chunk of memory that was allocated by the bump allocator.
AnyChunkNextIter
Iterator that iterates over next chunks by continuously calling AnyChunk::next.
AnyChunkPrevIter
Iterator that iterates over previous chunks by continuously calling AnyChunk::prev.
AnyStats
Provides statistics about the memory usage of the bump allocator.
Chunk
Refers to a chunk of memory that was allocated by the bump allocator.
ChunkNextIter
Iterator that iterates over next chunks by continuously calling Chunk::next.
ChunkPrevIter
Iterator that iterates over previous chunks by continuously calling Chunk::prev.
Stats
Provides statistics about the memory usage of the bump allocator.