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

Function test_memory_usage

test/test_memory_usage.py:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_memory_usage():
10 # Check that memory_usage works with functions with star args.
11 mem, ret = memory_usage((some_func, (1, 2), dict(a=1)), retval=True)
12 assert ret[0] == (1, 2)
13 assert ret[1] == dict(a=1)
14
15
16def write_line(filepath):

Callers 1

Calls 1

memory_usageFunction · 0.90

Tested by

no test coverage detected