There is currently no way to run perf on rustdoc, but it would be very useful (c.f. https://github.com/rust-lang/rust/pull/73566#issuecomment-647055502, https://github.com/rust-lang/rust/issues/58849).