-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Add some timing info to rustdoc #74590
Merged
Merged
Commits on Aug 24, 2020
-
Add some timing info to rustdoc
There are various improvements, but the main one is to time each pass that rustdoc performs (`rustdoc::passes`). Before, these were the top five timings for `cargo doc` on the cargo repository: ``` +---------------------------------+-----------+-----------------+----------+------------+ | Item | Self time | % of total time | Time | Item count | +---------------------------------+-----------+-----------------+----------+------------+ | <unknown> | 854.70ms | 20.888 | 2.47s | 744823 | +---------------------------------+-----------+-----------------+----------+------------+ | expand_crate | 795.29ms | 19.436 | 848.00ms | 1 | +---------------------------------+-----------+-----------------+----------+------------+ | metadata_decode_entry | 256.73ms | 6.274 | 279.49ms | 518344 | +---------------------------------+-----------+-----------------+----------+------------+ | resolve_crate | 240.56ms | 5.879 | 242.86ms | 1 | +---------------------------------+-----------+-----------------+----------+------------+ | hir_lowering | 146.79ms | 3.587 | 146.79ms | 1 | +---------------------------------+-----------+-----------------+----------+------------+ ``` Now the timings are: ``` +---------------------------------+-----------+-----------------+----------+------------+ | Item | Self time | % of total time | Time | Item count | +---------------------------------+-----------+-----------------+----------+------------+ | <unknown> | 1.40s | 22.662 | 3.73s | 771430 | +---------------------------------+-----------+-----------------+----------+------------+ | collect-trait-impls | 1.34s | 21.672 | 2.87s | 1 | +---------------------------------+-----------+-----------------+----------+------------+ | expand_crate | 1.21s | 19.577 | 1.28s | 1 | +---------------------------------+-----------+-----------------+----------+------------+ | build extern trait impl | 704.66ms | 11.427 | 1.07s | 21893 | +---------------------------------+-----------+-----------------+----------+------------+ | metadata_decode_entry | 354.84ms | 5.754 | 391.81ms | 544919 | +---------------------------------+-----------+-----------------+----------+------------+ ```
Configuration menu - View commit details
-
Copy full SHA for 50a7969 - Browse repository at this point
Copy the full SHA 50a7969View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0ebf1d - Browse repository at this point
Copy the full SHA a0ebf1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d252798 - Browse repository at this point
Copy the full SHA d252798View commit details -
Configuration menu - View commit details
-
Copy full SHA for e730947 - Browse repository at this point
Copy the full SHA e730947View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6782dc0 - Browse repository at this point
Copy the full SHA 6782dc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d213784 - Browse repository at this point
Copy the full SHA d213784View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2934fd0 - Browse repository at this point
Copy the full SHA 2934fd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a549c3a - Browse repository at this point
Copy the full SHA a549c3aView commit details -
Had to use -Xignore-whitespace-conflicts to avoid awful conflicts, but that threw off the indentation
Configuration menu - View commit details
-
Copy full SHA for 6e3e74d - Browse repository at this point
Copy the full SHA 6e3e74dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.