mode.debug
Debugging utilities.
Blocking
Bases: RuntimeError
Exception raised when event loop is blocked.
Source code in mode/debug.py
36 37 |
|
BlockingDetector
Bases: Service
Service that detects blocking code using alarm/itimer.
Examples:
blockdetect = BlockingDetector(timeout=10.0)
await blockdetect.start()
Other Parameters:
Name | Type | Description |
---|---|---|
timeout |
Seconds
|
number of seconds that the event loop can be blocked. |
raises |
Type[BaseException]
|
Exception to raise when the blocking
timeout is exceeded. Defaults to :exc: |
Source code in mode/debug.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|