A reduced fork of Firefox’s malloc_size_of crate, for bundling with WebRender.
- For use on types where size_of() returns 0.
- Operations used when measuring heap usage of data structures.
- Trait for measuring the “shallow” heap usage of a container.
- Trait for measuring the “deep” heap usage of a data structure. This is the most commonly-used of the traits.
- A C function that takes a pointer to a heap allocation and returns its size.