Low Overhead Allocation Sampling with VMProf in PyPy's GC
Introduction¶
There are many time-based statistical profilers around (like VMProf or py-spy
just to name a few). They allow the user to pick a trade-off between profiling
precision and runtime overhead.
On the other hand there are memory profilers
such as memray. They can be handy for
finding leaks or for discovering functions that allocate a lot of memory.
Memory profilers typlically save every single allocation a program does. This
results in precise profiling, but larger overhead.
In this pos...
Read more at pypy.org