“Profiling Rust Memory Usage with jemalloc”
summary
Shows how to get Go-style pprof heap profiles from Rust by using jemallocator crate as the global allocator and the rust-jemalloc-pprof converter to emit pprof-format dumps. Demonstrates configuring jemalloc with its profiling symbol, adding an HTTP handler to trigger heap dumps, and visualizing profiles in Parca. Recreates a toy leak that grows about 1.8 MB/s, produces flame graphs and a memory-over-time chart, and validates that the pipeline yields actionable allocation stacks.
AI-written summary · about
related talks
26mAllocating Less: Really Thin Rust Cloud Apps
42mSelf-Awareness in C++ Code
50mJPoint 2023 TechRadar: Performance Tools
38mUnderstanding Memory Behavior on Nodejs
27mParallel Ruby: Managing the Memory Monster
27mOptimizing Ruby's Memory Layout
47mPerformance optimisation: how do I go about it?
50mPerformance optimization: how do I go about it?
