I want to caculate python asyncio performance and select only cpu time cost.
I have read how-to-measure-pythons-asyncio-code-performance.
But asyncio.Task._step was changed to private which wrote into c modules
import asyncio
print(asyncio.Task) # _asyncio.Task
print(dir(asyncio.Task))
['__await__', '__class__', '__del__', '__delattr__', '__dir__', '__doc__',
'__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
'__init__', '__init_subclass__', '__iter__', '__le__', '__lt__', '__ne__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
'__str__', '__subclasshook__', '_asyncio_future_blocking', '_callbacks', '_coro',
'_exception', '_fut_waiter', '_log_destroy_pending', '_log_traceback', '_loop',
'_must_cancel', '_repr_info', '_result', '_source_traceback', '_state', 'add_done_callback',
'all_tasks', 'cancel', 'cancelled', 'current_task', 'done', 'exception', 'get_loop',
'get_stack', 'print_stack', 'remove_done_callback', 'result', 'set_exception', 'set_result']
I can't hack to use only py-code because I don't want to lose c code performance.