Last Updated: February 25, 2016
·
608
· padawin

Get the used memory in python

import resource
print resource.getrusage(resource.RUSAGE_SELF).ru_maxrss