File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,18 +10,21 @@ Command-line introspection tools
1010
1111-------------------------------------
1212
13- The :mod: `!asyncio ` module can be executed as a script to inspect the task
14- graph of another running Python process without modifying it or restarting it:
13+ The :mod: `!asyncio ` module can be invoked as a script via ``python -m
14+ asyncio `` to inspect the task graph of another running Python process without
15+ modifying it or restarting it. The :mod: `!asyncio.tools ` submodule implements
16+ this interface.
17+
18+ The following commands inspect the process identified by ``PID ``:
1519
1620.. code-block :: shell-session
1721
18- $ python -m asyncio ps [--retries N] PID
1922 $ python -m asyncio pstree [--retries N] PID
23+ $ python -m asyncio ps [--retries N] PID
2024
21- ``PID `` is the process ID of the Python process to inspect. The commands read
22- the target process state without executing any code in it. They are only
23- available on supported platforms and may require permission to inspect another
24- process. See :ref: `permission-requirements ` for details.
25+ The commands read the target process state without executing any code in it.
26+ They are only available on supported platforms and may require permission to
27+ inspect another process. See :ref: `permission-requirements ` for details.
2528
2629.. seealso ::
2730
You can’t perform that action at this time.
0 commit comments