Story

Detect memory leaks of C extensions with psutil and psleak

grodola Wednesday, December 24, 2025
Summary
This article explores the use of the psutil library in Python to introspect the heap memory usage of running processes. It demonstrates how to retrieve detailed information about memory allocation, including per-object statistics and heap fragmentation analysis.
49 8
Summary
gmpy.dev
Visit article Read on Hacker News Comments 8