![Is there any way to print out the gpu memory usage of a python program while it is running? - Stack Overflow Is there any way to print out the gpu memory usage of a python program while it is running? - Stack Overflow](https://i.stack.imgur.com/gyJal.png)
Is there any way to print out the gpu memory usage of a python program while it is running? - Stack Overflow
![Daily Python Tip 🐍🐧 on Twitter: "Get memory usage in Python: >>> import psutil >>> print(f"RAM used: {psutil.Process().memory_info().rss / (1024 * 1024):.2f} MB") RAM used: 13.01 MB But it's only the resident Daily Python Tip 🐍🐧 on Twitter: "Get memory usage in Python: >>> import psutil >>> print(f"RAM used: {psutil.Process().memory_info().rss / (1024 * 1024):.2f} MB") RAM used: 13.01 MB But it's only the resident](https://pbs.twimg.com/media/FUVwu6wXEAEdV2M.png)
Daily Python Tip 🐍🐧 on Twitter: "Get memory usage in Python: >>> import psutil >>> print(f"RAM used: {psutil.Process().memory_info().rss / (1024 * 1024):.2f} MB") RAM used: 13.01 MB But it's only the resident
![Monitoring memory usage of a running Python program | by Russell Keith-Magee | Survata Engineering Blog | Medium Monitoring memory usage of a running Python program | by Russell Keith-Magee | Survata Engineering Blog | Medium](https://miro.medium.com/v2/resize:fit:1400/0*EuLU9WYfE9NZ5W8E.jpeg)