parity-common/parity-util-mem
cheme e388dcfaa6
Initialize a crate for memory related tools (#89)
Initialize a crate for memory related tools. Mainly heapsize measurement through malloc_size_of traits.
2019-01-16 10:43:43 +01:00
..
src Initialize a crate for memory related tools (#89) 2019-01-16 10:43:43 +01:00
Cargo.toml Initialize a crate for memory related tools (#89) 2019-01-16 10:43:43 +01:00
README.md Initialize a crate for memory related tools (#89) 2019-01-16 10:43:43 +01:00
get_malloc_size_src.sh Initialize a crate for memory related tools (#89) 2019-01-16 10:43:43 +01:00
slim_malloc_size_of.patch Initialize a crate for memory related tools (#89) 2019-01-16 10:43:43 +01:00

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 simple write_volatile call.
  • estimate-heapsize : Do not use allocator, but size_of or size_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.