Last Updated: February 25, 2016
·
632
· padawin

Get the used memory in python

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