Crates.io | malloc_size_of |
lib.rs | malloc_size_of |
version | 0.1.1 |
created_at | 2025-02-07 23:53:19.813487+00 |
updated_at | 2025-02-25 23:42:09.571444+00 |
description | A an allocator-agnostic crate for measuring the heap size of a value |
homepage | |
repository | https://github.com/servo/malloc_size_of |
max_upload_size | |
id | 1547552 |
size | 36,402 |
A an allocator-agnostic crate for measuring the runtime size of a value including the size of any heap allocations that are owned by that value.
This crate is used by both Servo and Firefox for memory usage calculation.
HashSet
and HashMap
. (This relies
on the heap allocator having suitable support, which jemalloc
has.)Rc
and Arc
by providing traits that
are different to the ones for non-graph structures.