Skip to content

Commit 3155e2c

Browse files
committed
Clarify asyncio ps output description
1 parent a2f456f commit 3155e2c

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Doc/library/asyncio-tools.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,8 @@ Command-line options
7979
.. option:: ps PID
8080

8181
Display a flat table of all pending tasks in the process *PID*. Each row
82-
contains:
83-
84-
* **tid** — OS thread ID of the thread running the event loop
85-
* **task id** — memory address of the :class:`~asyncio.Task` object
86-
* **task name** — name assigned to the task (see :meth:`~asyncio.Task.get_name`)
87-
* **coroutine stack** — chain of coroutine frame names from outermost to innermost
88-
* **awaiter chain** — coroutine frames of the task that is awaiting this task
89-
* **awaiter name** — name of the awaiting task
90-
* **awaiter id** — memory address of the awaiting task (``0x0`` if none)
82+
shows the event-loop thread ID, task ID and name, coroutine stack, and the
83+
awaiting task's stack, name, and ID, if any.
9184

9285
This subcommand prints all tasks regardless of whether the await graph
9386
contains cycles. Use it when you need to filter or process task data

0 commit comments

Comments
 (0)