Expand description
This module contains traits for memory pool traits and an implementation for tracking memory usage.
The basic traits are MemoryPool and MemoryReservation. And default
implementation of MemoryPool is TrackingMemoryPool. Their relationship
is as follows:
(pool tracker) (resizable)
┌──────────────────┐ fn reserve() ┌─────────────────────────┐
│ trait MemoryPool │─────────────►│ trait MemoryReservation │
└──────────────────┘ └─────────────────────────┘Structs§
- Tracker 🔒
- Tracking
Memory Pool - A simple
MemoryPoolthat reports the total memory usage
Traits§
- Memory
Pool - A pool of memory that can be reserved and released.
- Memory
Reservation - A memory reservation within a
MemoryPoolthat is freed on drop