Ask
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
Project: Testing 18.04
Views: 430
Embed | Download | Raw |
Kernel: Python 3 (Ubuntu Linux)

Memory Profiler

Kernel: Python 3 Ubuntu Linux

%load_ext memory_profiler
import numpy as np def func(N): x = np.random.randn(N) y = 2 * x + 1 return y
%memit func(123)
%memit func(987654)