Skip to content

Instantly share code, notes, and snippets.

@deven96
Last active March 23, 2022 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deven96/973c4ec3623f5b72f1d88197e72d4381 to your computer and use it in GitHub Desktop.
Save deven96/973c4ec3623f5b72f1d88197e72d4381 to your computer and use it in GitHub Desktop.
Simple example description
from memory_profiler import profile
@profile
def my_func():
a = [1] * (10 ** 6)
b = [2] * (2 * 10 ** 7)
return a.append(b[200000])
if __name__ == '__main__':
my_func()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment