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 12, 2020
1 parent d9bc242 commit 9bd93a3
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 @@ -723,8 +723,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 9bd93a3

Please sign in to comment.