Skip to content

Conversation

@lkollar
Copy link
Contributor

@lkollarlkollar commented Jan 3, 2026

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.


📚 Documentation preview 📚: https://cpython-previews--143388.org.readthedocs.build/

@bedevere-appbedevere-appbot mentioned this pull request Jan 3, 2026
11 tasks
``<format>_<PID>.<ext>`` (for example, ``flamegraph_12345.html``).
:option:`--heatmap` creates a directory named ``heatmap_<PID>``.


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

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.
@pablogsalpablogsal merged commit ef3b882 into python:mainJan 3, 2026
56 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lkollar@pablogsal@StanFromIreland