From dc5dc5eb95439f900bb245b6ad445bde75d7ce79 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 30 Nov 2020 22:08:28 -0500 Subject: [PATCH] Make -Z self-profile work for rustdoc --- collector/src/execute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/src/execute.rs b/collector/src/execute.rs index cceaa52a7..95b8d03eb 100644 --- a/collector/src/execute.rs +++ b/collector/src/execute.rs @@ -724,8 +724,8 @@ impl Upload { } impl<'a> Processor for MeasureProcessor<'a> { - fn profiler(&self, build: BuildKind) -> Profiler { - if self.is_first_collection && self.self_profile && build != BuildKind::Doc { + fn profiler(&self, _build: BuildKind) -> Profiler { + if self.is_first_collection && self.self_profile { Profiler::PerfStatSelfProfile } else { Profiler::PerfStat