Closed
Description
I tried this code: microsoft/windows-docs-rs@3371c03
I expected to see this happen: cargo rustdoc -- -Z self-profile
shows where the 50 minutes are being spent.
Instead, this happened: Rustdoc completely loses 20 of the 50 minutes and gives up.
Here's the top 6 items from summarize summarize
:
+-------------------------------------------------+-----------+-----------------+----------+------------+
| Item | Self time | % of total time | Time | Item count |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| <unknown> | 653.09s | 36.998 | 1336.82s | 24718096 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| resolve_crate | 540.19s | 30.602 | 540.19s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| render_html | 384.93s | 21.807 | 386.88s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| get_blanket_impls | 66.06s | 3.742 | 76.22s | 45080 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
| expand_crate | 30.12s | 1.706 | 30.13s | 1 |
+-------------------------------------------------+-----------+-----------------+----------+------------+
Note that <unknown>
is at the top.
cc microsoft/windows-rs#420, #74590 (comment)
Meta
rustdoc --version
: rustdoc 1.51.0-nightly (a4cbb44ae 2021-01-20)