Skip to content

Commit 5a9ca22

Browse files
Avoid duplicate runs with self-profile off
1 parent 1ffc0b0 commit 5a9ca22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

collector/src/bin/rustc-perf-collector/execute.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ impl<'a> Processor for MeasureProcessor<'a> {
495495

496496
fn finished_first_collection(&mut self) -> bool {
497497
self.is_first_collection = false;
498-
true
498+
// The second collection is different from the first only if
499+
// self-profile is enabled, otherwise they're the same.
500+
self.self_profile
499501
}
500502

501503
fn process_output(

0 commit comments

Comments
 (0)