Expand description
Crate for parity memory management related utilities. It includes global allocator choice, heap measurement and memory erasure.
Re-exports§
pub use allocators::MallocSizeOfExt;
Modules§
- allocators
- default allocator management Features are:
- ethereum_
impls - Implementation of
MallocSize
for common ethereum types: fixed hashes and uints. - primitives_
impls - Implementation of
MallocSize
primitive types.
Macros§
- malloc_
size_ of_ is_ 0 - Implement notion of 0 allocation size for some type(s).
Structs§
- Malloc
Size OfOps - Operations used when measuring heap usage of data structures.
- Memory
Allocation Snapshot - Snapshot of collected memory metrics.
- Memory
Allocation Tracker - Accessor to the allocator internals.
- Memory
Stats Error - An error related to the memory stats gathering.
Traits§
- Malloc
Shallow Size Of - Trait for measuring the “shallow” heap usage of a container.
- Malloc
Size Of - Trait for measuring the “deep” heap usage of a data structure. This is the most commonly-used of the traits.
Functions§
- malloc_
size - Heap size of structure.