Created
February 17, 2021 20:14
-
-
Save rmackinnon/cf71fb6d5a8ac70dec9471c00b260114 to your computer and use it in GitHub Desktop.
Simple Memory Usage Ex. #2
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] * 100000 | |
del _a | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment