Skip to content

Commit 3fb0ca5

Browse files
No need to launch perf in the background.
Causes issues on the CI too.
1 parent 14cf49c commit 3fb0ca5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ void DataAggregator::findPerfExecutable() {
173173
void DataAggregator::start() {
174174
outs() << "PERF2BOLT: Starting data aggregation job for " << Filename << "\n";
175175

176-
// Don't launch perf for pre-aggregated files
177-
if (opts::ReadPreAggregated)
176+
// Don't launch perf for pre-aggregated files or when perf input is specified
177+
// by the user.
178+
if (opts::ReadPreAggregated || !opts::ReadPerfEvents.empty())
178179
return;
179180

180181
findPerfExecutable();

0 commit comments

Comments
 (0)