-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
[WIP] bpo-31415: Add -X importtime
option
#3765
Conversation
It shows show import time of each module. It's useful for optimizing startup time.
Add also import_xoptions_importtime() subfunction.
Example:
|
I really like this format. It's much easier to read and understand. |
I agree your format is more easy to understand at first glance. FYI, searching slow subtree is the most important use case of this file. My format, replaced
|
@mattn teach me nice folding script: https://gist.github.com/mattn/253c12d5ca22e06accb18e06b5e4e854 |
Sorry for random posts. My thoughts are: output sizeMinimum format is nice to paste in email, issue tracker or Github. I can use easy to use for looking large treeSupport folding is important, because some applications have hundreds of import. If |
My main question for both this and @methane's original patch would be to ask how it looks when combined with
I'd also ask whether the "starting import" lines in this import nesting version could be updated to:
|
PR 3490 was merged. |
XXX PR created to discuss importtime logs format of @methane PR #3490.
https://bugs.python.org/issue31415