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

default allocator management Features are:

Implementation of MallocSize primitive types.

Estimation for heapsize calculation. Usable to replace call to allocator method (for some allocators or simply because we just need a deterministic cunsumption measurement).

Macros

Implement notion of 0 allocation size for some type(s).

Structs

Operations used when measuring heap usage of data structures.

Snapshot of collected memory metrics.

Accessor to the allocator internals.

An error related to the memory stats gathering.

Traits

Trait for measuring the “shallow” heap usage of a container.

Trait for measuring the “deep” heap usage of a data structure. This is the most commonly-used of the traits.

Functions

Heap size of structure.

Derive Macros