Created
October 7, 2012 21:27
-
-
Save enagorny/3849657 to your computer and use it in GitHub Desktop.
Memory usage in MB in given point of script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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