Registry / utility / wr-malloc-size-of

wr-malloc-size-of

JSON →
library0.2.2rscratesunverified

Internal utility to measure memory usage in WebRender.

# Cargo.toml [dependencies] wr_malloc_size_of = "0.2.2"
INSTALL
IMPORT
SIG · WR-MALLOC-SIZE-OF
W
wr-malloc-size-of
utilityrustv0.2.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.

MallocSizeOf
use wr_malloc_size_of::MallocSizeOf;

Measures heap memory usage of a value

use wr_malloc_size_of::MallocSizeOf; fn main() { let size = Vec::<u8>::malloc_size_of(&vec![1,2,3]); println!("Size: {}", size); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
wr-malloc-size-of — cargo add wr-malloc-size-of · libregistry