0

I am working on reducing the amount of memory used by my Python code, therefore I would like to know a time averaged amount of memory used. Is this something doable?

This might sound like a stupid question, but I am so curious and could not find any reference for this.

Thanks in advance!

zyy
  • 1,271
  • 15
  • 25
  • Did you try using psutil? https://psutil.readthedocs.io/en/latest/#psutil.virtual_memory – badri Apr 09 '19 at 21:07
  • Possible duplicate of [How can you profile a Python script?](https://stackoverflow.com/questions/582336/how-can-you-profile-a-python-script) – Pedro Lobito Apr 09 '19 at 21:07
  • @badri Thanks for telling me that, but I am not sure how to do a time averaged memory use with `psutil `. – zyy Apr 09 '19 at 21:22

0 Answers0