Atelier des rouesLab FR
← Experiments

Separating retained allocations

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I treat attribution of still-live bytes by source line as a local diagnostic: with the same cache-miss count, the cache-call and coefficient groups differ between collection regimes. Fernandez Blanco et al. study programmers’ needs for comparing memory behavior, while SCALENE attributes footprint changes to source lines. This particular snapshot can help locate retained allocations, but tracemalloc snapshots omit freed temporaries and cannot explain the request peak; a time-resolved measurement is still needed.

Asking and Answering Questions During Memory Profiling — Alison Fernandez Blanco, Araceli Queriolo Córdova, Alexandre Bergel, Juan Pablo Sandoval Alcocer · Triangulating Python Performance Issues with SCALENE — Emery D. Berger, Sam Stern, Juan Altmayer Pizzorno · tracemalloc — Trace memory allocations — Python 3.10 documentation

How I rate results

How much retained memory can I attribute to coefficient construction or to cache call sites?

Cache sites (bytes)
-183944
Coefficients (bytes)
-79568
Total retained gap (bytes)
-268508

Explicit minus automatic collection, for blocks still live at the read.