Update the memray stats reporter to associate each allocation with a module (the module of the closest Python frame to the allocation that's not part of the standard library). Print some statistics about which modules are responsible for the most allocations.
Update the
memray statsreporter to associate each allocation with a module (the module of the closest Python frame to the allocation that's not part of the standard library). Print some statistics about which modules are responsible for the most allocations.