[WIP] bpo-31415: Add -X importtime option#3765
[WIP] bpo-31415: Add -X importtime option#3765vstinner wants to merge 8 commits intopython:masterfrom vstinner:importtime
-X importtime option#3765Conversation
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