Skip to content
rusthacks.dev

Tag

memory

3 posts

Flat illustration for the post “Measuring Memory Use of a Rust Program With Heaptrack”, composed around perf.
Systems

Measuring Memory Use of a Rust Program With Heaptrack

Find where a Rust program allocates and how much it holds. Use /usr/bin/time for peak RSS, heaptrack for Linux allocation timelines, the dhat crate for portable heap profiles and a counting allocator for tests.

4 min read
Flat illustration for the post “Why Rust Has No Garbage Collector and What It Uses Instead”, composed around ownership.
Systems

Why Rust Has No Garbage Collector and What It Uses Instead

Rust frees memory at compile-time-determined points using ownership and Drop, not a runtime collector. See what that buys in predictability and footprint, what it costs in design effort, and where reference counting fills the gap.

3 min read