Skip to content

Instantly share code, notes, and snippets.

@rmackinnon
Created February 17, 2021 20:14
Show Gist options
  • Save rmackinnon/cf71fb6d5a8ac70dec9471c00b260114 to your computer and use it in GitHub Desktop.
Save rmackinnon/cf71fb6d5a8ac70dec9471c00b260114 to your computer and use it in GitHub Desktop.
Simple Memory Usage Ex. #2
from memory_profiler import profile
@profile(precision=4)
def main():
_v = "valuestring"
_a = [_v] * 100000
del _a
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment