parity-util-mem
Collection of memory related utilities.
Features
- estimate-heapsize : Do not use allocator, but
size_of
orsize_of_val
.
Others features define global allocator, see src/alloc.rs
.
Dependency
This crate groups common dependency, a patched copy of unpublished malloc_size_of
from servo project is copied and partially reexported.
Malloc_size_of
code is used internally as a module with a few modification to be able to implement type locally.
For existing code using deprecated HeapsizeOf
crate, calls to heapsize_of_children
should be replace by calls to size_of
.