Skip to content

Commit f0f9dec

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent e8c5aca commit f0f9dec

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Doc/library/profile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,4 @@ precise measurements of process or wall-clock time. For example, see
369369
Recommended replacement for this module.
370370

371371
:mod:`pstats`
372-
Statistics analysis and formatting for profile data.
372+
Statistical analysis and formatting for profile data.

Doc/library/profiling-sampling.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ collect data, and detach without the application ever knowing it was observed.
5151
The trade-off is that very short-lived functions may be missed if they happen
5252
to complete between samples.
5353

54-
Statistical profiling excels at answering the question "where is my program
54+
Statistical profiling excels at answering the question, "Where is my program
5555
spending time?" It reveals hotspots and bottlenecks in production code where
5656
deterministic profiling overhead would be unacceptable. For exact call counts
5757
and complete call graphs, use :mod:`profiling.tracing` instead.
@@ -530,7 +530,7 @@ data, similar to the ``top`` command for system processes::
530530
python -m profiling.sampling attach --live 12345
531531

532532
The display updates continuously as new samples arrive, showing the current
533-
hottest functions. This mode requires the ``curses`` module, which is
533+
hottest functions. This mode requires the :mod:`curses` module, which is
534534
available on Unix-like systems. The terminal must be at least 80 columns wide
535535
and 24 lines tall.
536536

@@ -573,14 +573,14 @@ Within live mode, keyboard commands control the display:
573573
Show the help screen with all available commands.
574574

575575
Live mode is incompatible with output format options (``--collapsed``,
576-
``--flamegraph``, etc.) because it uses an interactive terminal interface
577-
rather than producing file output.
576+
``--flamegraph``, and so on) because it uses an interactive terminal
577+
interface rather than producing file output.
578578

579579

580580
Async-Aware Profiling
581581
=====================
582582

583-
For programs using ``asyncio``, the profiler offers async-aware mode
583+
For programs using :mod:`asyncio`, the profiler offers async-aware mode
584584
(``--async-aware``) that reconstructs call stacks based on the task structure
585585
rather than the raw Python frames::
586586

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ Key features include:
168168
(``--async-aware``). See which coroutines are consuming time, with options to show only
169169
running tasks or all tasks including those waiting.
170170

171-
See :mod:`profiling.sampling` for full documentation, including all available
172-
output formats, profiling modes, and configuration options.
171+
See :mod:`profiling.sampling` for the complete documentation, including all
172+
available output formats, profiling modes, and configuration options.
173173

174174
(Contributed by Pablo Galindo and László Kiss Kollár in :gh:`135953` and :gh:`138122`.)
175175

0 commit comments

Comments
 (0)