As seen in https://news.ycombinator.com/item?id=38561682

Memray tracks and reports memory allocations, both in Python code and in compiled extension modules.