6.2. Profiling Memray
Works only on Linux and macOS
Does not work on Windows
https://podcasts.apple.com/us/podcast/episode-21-a-garbage-episode/id1712665877?i=1000703862922
https://podcasts.apple.com/us/podcast/episode-16-memory-allocation/id1712665877?i=1000674933579
$ python -m pip install memray
$ python -m memray run myfile.py
$ python -m memray summary memray-orig.py.59092.bin
$ python -m memray tree memray-orig.py.59092.bin
$ python -m memray flamegraph memray-orig.py.59092.bin
$ python -m memray table memray-orig.py.59092.bin
$ python -m memray stats memray-orig.py.59092.bin