Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Memray

📅 2022-Jun-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ profiler, python ⬩ 📚 Archive

Memray is an open source memory profiler for Python. It can show various types of reports on memory allocations in your Python program.

$ python3 -m pip install memray
$ python3 -m memray run -o out.bin hello.py
$ python3 -m memray table out.bin

$ python3 -m memray tree out.bin

$ python3 -m memray summary out.bin

$ python3 -m memray stats out.bin


© 2022 Ashwin Nanjappa • All writing under Creative Commons BY-SA license