Created
February 17, 2021 20:13
-
-
Save rmackinnon/76f191201f5e41d9df90a5b6fe4ff61d to your computer and use it in GitHub Desktop.
Simple Memory Usage Ex. #1
This file contains 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
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