Crates.io | malloc_size_of |
lib.rs | malloc_size_of |
version | |
source | src |
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 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.