Skip to content

Instantly share code, notes, and snippets.

@csbuja
Created February 25, 2018 07:03
Show Gist options
  • Save csbuja/5b2d05af66aa9e7abda784ebf4a48d54 to your computer and use it in GitHub Desktop.
Save csbuja/5b2d05af66aa9e7abda784ebf4a48d54 to your computer and use it in GitHub Desktop.
python memory profiling
import numpy as np
from memory_profiler import profile
@profile
def main():
a = np.ones((1000,1000))
a = a +1
print(a)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment