Skip to content

Instantly share code, notes, and snippets.

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