Memray: The endgame Python memory profiler
source link: https://talkpython.fm/episodes/show/425/memray-the-endgame-python-memory-profiler
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Memray: The endgame Python memory profiler
Understanding how your Python application is using memory can be tough. First, Python has it's own layer of reused memory (arenas, pools, and blocks) to help it be more efficient. And many important Python packages are built in natively compiled languages like C and Rust often times making that section of your memory opaque. But with Memray, you can way deeper insight into your memory usage. We have Pablo Galindo Salgado and Matt Wozniski back on the show to dive into Memray, the sister project to their pystack one we recently covered.
Links from the show
Matt Wozniski: github.com
pytest-memray: github.com
PEP 669 – Low Impact Monitoring for CPython: peps.python.org
Memray discussions: github.com
Mandlebrot Flamegraph example: bloomberg.github.io
Python allocators: bloomberg.github.io
Profiling in Python: docs.python.org
PEP 693 – Python 3.12 Release Schedule: peps.python.org
Watch this episode on YouTube: youtube.com
Episode transcripts: talkpython.fm
--- Stay in touch with us ---
Subscribe to us on YouTube: youtube.com
Follow Talk Python on Mastodon: talkpython
Follow Michael on Mastodon: mkennedy
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK