Write a program that will determine the memory usage by python process


Topic: Write a program that will determine the memory usage by python process

Solution

import os, psutil
print(psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2)



List all Python Programs