I have a very simple python script
def mem(mess = ""): print(f"{mess}\\t{psutil.Process(os.getpid()).memory_full_info().uss/(1024**2):.2f}&