Created
October 17, 2016 05:59
-
-
Save kracekumar/c0513a589f14ec0fd270d526cec127c3 to your computer and use it in GitHub Desktop.
Curio Monitor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@user-ThinkPad-T400 ~/c/bt> python -m curio.monitor | |
Curio Monitor: 9 tasks running | |
Type help for commands | |
curio > ps | |
Task State Cycles Timeout Task | |
------ ------------ ---------- ------- -------------------------------------------------- | |
1 FUTURE_WAIT 2 None Monitor.monitor_task | |
2 TASK_JOIN 8 None download | |
3 READ_WAIT 11 None PeerConnection.start | |
4 TIME_SLEEP 11 None PeerConnection.start | |
5 READ_WAIT 10 None PeerConnection.start | |
6 READ_WAIT 11 None PeerConnection.start | |
7 TIME_SLEEP 13 None PeerConnection.start | |
8 TIME_SLEEP 13 None PeerConnection.start | |
9 TIME_SLEEP 13 None PeerConnection.start | |
curio > ps | |
Task State Cycles Timeout Task | |
------ ------------ ---------- ------- -------------------------------------------------- | |
1 FUTURE_WAIT 2 None Monitor.monitor_task | |
2 TASK_JOIN 8 None download | |
3 READ_WAIT 11 None PeerConnection.start | |
4 TIME_SLEEP 15 None PeerConnection.start | |
5 READ_WAIT 12 None PeerConnection.start | |
6 TIME_SLEEP 17 None PeerConnection.start | |
7 TIME_SLEEP 16 None PeerConnection.start | |
8 TIME_SLEEP 16 None PeerConnection.start | |
9 TIME_SLEEP 16 None PeerConnection.start | |
curio > ps | |
Task State Cycles Timeout Task | |
------ ------------ ---------- ------- -------------------------------------------------- | |
1 FUTURE_WAIT 2 None Monitor.monitor_task | |
2 TASK_JOIN 8 None download | |
3 READ_WAIT 11 None PeerConnection.start | |
4 TIME_SLEEP 18 None PeerConnection.start | |
5 READ_WAIT 12 None PeerConnection.start | |
6 TIME_SLEEP 20 None PeerConnection.start | |
7 TIME_SLEEP 19 None PeerConnection.start | |
8 TIME_SLEEP 19 None PeerConnection.start | |
9 TIME_SLEEP 19 None PeerConnection.start | |
curio > where 9 | |
Stack for Task(id=9, <coroutine object PeerConnection.start at 0x7fc0391fa518>, state='TIME_SLEEP') (most recent call last): | |
File "/home/user/code/bt/bt/protocol.py", line 376, in start | |
await self.handle_message(buffer) | |
File "/home/user/code/bt/bt/protocol.py", line 237, in handle_message | |
await self.send_next_message() | |
File "/home/user/code/bt/bt/protocol.py", line 255, in send_next_message | |
await curio.sleep(1) | |
File "/home/user/.virtualenvs/bt/lib/python3.5/site-packages/curio/task.py", line 95, in sleep | |
await _sleep(seconds) | |
File "/home/user/.virtualenvs/bt/lib/python3.5/site-packages/curio/traps.py", line 52, in _sleep | |
yield ('_trap_sleep', seconds) | |
curio > | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment