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.
- AnyChunk
Next Iter - Iterator that iterates over next chunks by continuously calling
AnyChunk::next. - AnyChunk
Prev Iter - 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.
- Chunk
Next Iter - Iterator that iterates over next chunks by continuously calling
Chunk::next. - Chunk
Prev Iter - Iterator that iterates over previous chunks by continuously calling
Chunk::prev. - Stats
- Provides statistics about the memory usage of the bump allocator.