async def test_profiler_start_stop():
    profiler = Profiler(interval=0.1, top_results=10)
    try:
        (await profiler.start())
        (await asyncio.sleep(0.5))
    finally:
        (await profiler.stop())
async def test_profiler_start_stop():
    profiler = Profiler(interval=0.1, top_results=10)
    try:
        (await profiler.start())
        (await asyncio.sleep(0.5))
    finally:
        (await profiler.stop())