]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142927: Clarify pstats file output in docs and CLI (#143388)
authorLászló Kiss Kollár <kiss.kollar.laszlo@gmail.com>
Sat, 3 Jan 2026 21:16:29 +0000 (21:16 +0000)
committerGitHub <noreply@github.com>
Sat, 3 Jan 2026 21:16:29 +0000 (21:16 +0000)
commitef3b8829e434b16f136d55cae8b9853cac113f01
treed843098142cb9686f5f58d432945e17920ab87fe
parent12283f6373baba43cf1e03e5e06e34c924247f7d
gh-142927: Clarify pstats file output in docs and CLI (#143388)

When running the `profiling.sampling` module in pstats mode, the output
can be emitted in two different ways: text to stdout or a binary file
when the `--output` argument is set.

The current documentation and help text is confusing as it does not
distinguish between these two output formats so it may be surprising to
the user to get different formats depending whether `--output` is set or not.
Doc/library/profiling.sampling.rst
Lib/profiling/sampling/cli.py