Poireau: A Lightweight Heap Allocation Debugger

2025-05-22
Poireau: A Lightweight Heap Allocation Debugger

Poireau is a lightweight library for debugging memory allocation issues. It generates a statistically representative overview of an application's heap footprint by intercepting a small fraction of calls to malloc/calloc, etc., with minimal performance impact. Poireau uses Linux perf for tracing and an external script for analysis, pinpointing memory leaks and other problems. Its advantages include low invasiveness, ease of auditing, and suitability for production use, even providing information after a crash.

Development memory debugging