Created
February 25, 2018 07:03
-
-
Save csbuja/5b2d05af66aa9e7abda784ebf4a48d54 to your computer and use it in GitHub Desktop.
python memory profiling
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
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