Crate parity_util_mem

Source
Expand description

Crate for parity memory management related utilities. It includes global allocator choice, heap measurement and memory erasure.

Re-exports§

Modules§

  • default allocator management Features are:
  • Implementation of MallocSize for common ethereum types: fixed hashes and uints.
  • 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§

Structs§

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§

Derive Macros§