Monitoring the asyncio event loop : <p>I am writing an application using python3 and am trying out asyncio for the first time. One issue I have encountered is that some of my coroutines block the event loop for longer than I like. I am trying to find something along the lines of top for the event loop that will show how much wall/cpu time is being spent running each of my coroutines. If there isn't anything already existing does anyone know of a way to add hooks to the event loop so that I can take measurements?</p>

<p>I have tried using cProfile which gives some helpful output, but I am more interested in time spent blocking the event loop, rather than total execution time.</p>
