New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cProfile standard output #79042
Comments
The standard output for cProfile when run from a command line is not very useful. It has two main flaws:
The first makes it very hard to look at the output. The second is very annoying when you get a bunch of __init__.py in the output. Suggested solution:
|
Can you paste a sample output showing how it looks like pre and post patch? |
There is an example output on github. Should I paste it here too? I can do it once I get home if you want. |
Output before this patch:
Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) After:
Ordered by: cumulative time ncalls tottime percall cumtime percall filename:lineno(function) The sorting is easy to see, but the other change is that this line:
...now looks like this:
|
I have resubmitted the patch that changes the default sorting order in #31929 as it was asked to separate that from the original patch by Anders. I also added documentation changes that follow from changing the default sorting order. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: