No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann 3a25024ee4
Releasing fastforward version 0.1.1-2~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-07-20 14:04:27 +02:00
debian Releasing fastforward version 0.1.1-2~ffwd13+u1. 2026-07-20 14:04:27 +02:00
src Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
.cargo_vcs_info.json Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
Cargo.lock Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
Cargo.toml Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
Cargo.toml.orig Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
LICENSE-APACHE Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
LICENSE-MIT Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00
README.md Adding upstream version 0.1.1. 2026-07-20 14:03:35 +02:00

MallocSizeOf

Build Status Crates.io Docs Crates.io License dependency status

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.

Features

  • It isn't bound to a particular heap allocator.
  • It provides traits for both "shallow" and "deep" measurement, which gives flexibility in the cases where the traits can't be used.
  • It allows for measuring blocks even when only an interior pointer can be obtained for heap allocations, e.g. HashSet and HashMap. (This relies on the heap allocator having suitable support, which jemalloc has.)
  • It allows handling of types like Rc and Arc by providing traits that are different to the ones for non-graph structures.