← 返回首页
gh-96143: Improve perf profiler docs by erlend-aasland · Pull Request #96445 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-96143: Improve perf profiler docs#96445

Merged
pablogsal merged 11 commits into
python:mainfrom
erlend-aasland:perf-docs
Oct 27, 2022
Merged

gh-96143: Improve perf profiler docs#96445
pablogsal merged 11 commits into
python:mainfrom
erlend-aasland:perf-docs

Conversation

erlend-aasland commented Aug 30, 2022
edited
Loading

Copy link
Copy Markdown
Contributor
  • Add What's New
  • Rewrite NEWS entry to match What's New
  • Document new sys APIs
  • Fix formatting here and there
  • Adjust wording a few places

Comment thread Doc/howto/perf_profiling.rst Show resolved Hide resolved
Comment thread Doc/library/sys.rst Show resolved Hide resolved
erlend-aasland marked this pull request as ready for review August 30, 2022 22:10
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/whatsnew/3.12.rst Outdated Show resolved Hide resolved
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved

pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

LGTM

Great work! 👍

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

I'm confused by "compatibility mode" wording whereas the env var is called "perf support". I would prefer to say that -X perf enables support for the Linux perf tool.

"Enable" support or "Add" support, not sure which one makes more send. Technically, the option adds something ;-)

The PyConfig member, the env var and the -X option have 3 different names which also confuse me. Would it make sense to rename the -X option to -X perfsupport to make it more consistent? If yes, I would suggest doing that in a separated PR.

The name "perf" is very generic and can mean many things. A newcomer might read it as: "use -X perf to get best performance" :-)

For me, "compatibility mode" sounds like "backward compatibility mode".

Comment thread Doc/howto/perf_profiling.rst Show resolved Hide resolved
Comment thread Doc/using/cmdline.rst Outdated Show resolved Hide resolved
Comment thread Doc/using/cmdline.rst Outdated Show resolved Hide resolved

Copy link
Copy Markdown
Contributor Author

I'm confused by "compatibility mode" wording whereas the env var is called "perf support". I would prefer to say that -X perf enables support for the Linux perf tool.

+1

I've tried to address your review comments in 9c72023, @vstinner. Are you ok with those changes?

The PyConfig member, the env var and the -X option have 3 different names which also confuse me. Would it make sense to rename the -X option to -X perfsupport to make it more consistent? If yes, I would suggest doing that in a separated PR.

+1

Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/whatsnew/3.12.rst Outdated Show resolved Hide resolved
Comment thread Python/clinic/sysmodule.c.h Outdated Show resolved Hide resolved

gpshead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

thanks for the edits!

Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/whatsnew/3.12.rst Outdated Show resolved Hide resolved

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Ezio made many interesting comments. I will wait until they are addressed to review again the PR ;-)

Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
17 hidden items Load more…

Copy link
Copy Markdown
Contributor Author

Sorry for the delay. I finally got around to try to address the review. Please take a look at the changes.

Comment thread Doc/howto/perf_profiling.rst Outdated Show resolved Hide resolved
Comment thread Doc/howto/perf_profiling.rst Show resolved Hide resolved
Comment thread Doc/library/sys.rst Outdated Show resolved Hide resolved
Comment thread Python/clinic/sysmodule.c.h Show resolved Hide resolved
Erlend E. Aasland and others added 2 commits October 4, 2022 12:27
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>

Copy link
Copy Markdown
Member

@erlend-aasland can you fix the conflicts and I will land this? Thanks!

pablogsal self-assigned this Oct 25, 2022

Copy link
Copy Markdown
Contributor Author

@erlend-aasland can you fix the conflicts and I will land this? Thanks!

Will do! Thanks for the heads-up. I forgot about this PR :)

pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Thanks a lot for the fixes! ❤️

I plan to land this this week as all the feedback has been addressed but I will give some time in case someone wants to request some further changes.

pablogsal merged commit 723ebe7 into python:main Oct 27, 2022
erlend-aasland deleted the perf-docs branch October 27, 2022 15:20
gvanrossum pushed a commit to gvanrossum/cpython that referenced this pull request Oct 28, 2022
dependabot Bot added a commit to ronaldoussoren/cpython that referenced this pull request Nov 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Footer

© 2026 GitHub, Inc.