MCPcopy Index your code
hub / github.com/pythonprofilers/memory_profiler / func

Function func

examples/exxample_psutil_memory_full_info.py:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 import numpy as np
10
11 def func():
12 a = np.random.random((size, size))
13 return a
14
15 rss = memory_usage(proc=func, max_usage=True, backend="psutil")
16 uss = memory_usage(proc=func, max_usage=True, backend="psutil_uss")

Callers 2

call_on_stackMethod · 0.85
fMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected