[BOLT] Spawn buildid-list perf job at perf2bolt start. NFC (#185865)
Launch this perf job with the others at the beginning of the aggregation process. Extracting buildid-list from perf data is not a costly process, so it can be performed by default. This provides a distinct advantage when this dataset is required in other perf2bolt stages as well. Please see PR #171144.
This commit is contained in:
parent
8eb0dfe5b6
commit
fd225e296f
@ -163,6 +163,7 @@ private:
|
||||
};
|
||||
|
||||
/// Process info for spawned processes
|
||||
PerfProcessInfo BuildIDProcessInfo;
|
||||
PerfProcessInfo MainEventsPPI;
|
||||
PerfProcessInfo MemEventsPPI;
|
||||
PerfProcessInfo MMapEventsPPI;
|
||||
|
||||
@ -233,6 +233,8 @@ void DataAggregator::start() {
|
||||
|
||||
launchPerfProcess("task events", TaskEventsPPI,
|
||||
"script --show-task-events --no-itrace");
|
||||
|
||||
launchPerfProcess("buildid list", BuildIDProcessInfo, "buildid-list");
|
||||
}
|
||||
|
||||
void DataAggregator::abort() {
|
||||
@ -303,8 +305,6 @@ void DataAggregator::processFileBuildID(StringRef FileBuildID) {
|
||||
errs() << "PERF-ERROR: return code " << ReturnCode << "\n" << ErrBuf;
|
||||
};
|
||||
|
||||
PerfProcessInfo BuildIDProcessInfo;
|
||||
launchPerfProcess("buildid list", BuildIDProcessInfo, "buildid-list");
|
||||
if (prepareToParse("buildid", BuildIDProcessInfo, WarningCallback))
|
||||
return;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user