Skip to content

Instantly share code, notes, and snippets.

@enagorny
Created October 7, 2012 21:27
Show Gist options
  • Save enagorny/3849657 to your computer and use it in GitHub Desktop.
Save enagorny/3849657 to your computer and use it in GitHub Desktop.
Memory usage in MB in given point of script
import resource
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment