Skip to content

bpo-34861: Make cumtime the default sorting key for cProfile - #31929

Merged
pablogsal merged 1 commit into
python:mainfrom
DanielNoord:fix-issue-34861
Mar 30, 2022
Merged

pablogsal merged 1 commit into
python:mainfrom
DanielNoord:fix-issue-34861

Conversation

@DanielNoord

@DanielNoord DanielNoord commented Mar 16, 2022 •

Copy link
Copy Markdown
Contributor

Note: This does not fully resolve bpo-34861, but only tackles one of the two issues identified.

This is a resubmit of #9655 and some of the changes that were discussed there.

@pablogsal I'm tagging you since you basically asked for the PR to be split and said that this change looked good. Sorry if the ping is uncalled for.

I have also updated the documentation to better reflect what a new call to cProfile.run('re.compile("foo|bar")') would look like. This also shows that we no longer sort on standard name.

https://bugs.python.org/issue34861

Co-authored-by: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= <anders.hovmoller@trioptima.com>

@MaxwellDupre MaxwellDupre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok.

@pablogsal
pablogsal merged commit 75eee1d into python:main Mar 30, 2022
@DanielNoord
DanielNoord deleted the fix-issue-34861 branch March 30, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants