Skip to content

Commit

Permalink
Make -Z self-profile work for rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Dec 16, 2020
1 parent c398560 commit dc5dc5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collector/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc5dc5e

Please sign in to comment.