e388dcfaa6
Initialize a crate for memory related tools. Mainly heapsize measurement through malloc_size_of traits. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md | ||
get_malloc_size_src.sh | ||
slim_malloc_size_of.patch |
README.md
parity-util-mem
Collection of memory related utilities.
Features
- volatile-erase : Not set by default,
Memzero
struct will be erasing memory through a simplewrite_volatile
call. - 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, clear_on_drop
is reexported, and 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.