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

Function my_func

test/test_async.py:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7@profile
8async def my_func():
9 a = [1] * (10 ** 6)
10 b = [2] * (2 * 10 ** 7)
11 await asyncio.sleep(1e-2)
12 del b
13
14async def main():
15 task = asyncio.create_task(my_func())

Callers 2

mainFunction · 0.70
main_legacyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected