Registry / utility / heapsize

heapsize

JSON →
library0.4.2rscratesunverified

Infrastructure for measuring the total runtime size of an object on the heap.

# Cargo.toml [dependencies] heapsize = "0.4.2"
INSTALL
IMPORT
SIG · HEAPSIZE
H
heapsize
utilityrustv0.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HeapSizeOf
use heapsize::HeapSizeOf;

Measures the heap size of a vector.

use heapsize::HeapSizeOf; fn main() { let v: Vec<u8> = vec![0; 100]; println!("Heap size: {} bytes", v.heap_size_of_children()); }
Debug
Known issues
breakingThis crate is unmaintained and may not work with newer Rust versions.
fix
Consider using alternative heap measurement tools or the `alloc` crate's methods.
affects: >=0.4.0
Upgrade
Version history
0.4.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
heapsize — cargo add heapsize · libregistry