[][src]Crate parity_util_mem

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.

sizeof

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

malloc_size_of_is_0

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

Structs

MallocSizeOfOps

Operations used when measuring heap usage of data structures.

Traits

MallocShallowSizeOf

Trait for measuring the "shallow" heap usage of a container.

MallocSizeOf

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.

Derive Macros

MallocSizeOf