ProjectExplorer: Store some aspect data by value in the RunControl

Change-Id: Idb7e119b5b0b483ce91efeb21fb415b654cfed4f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-08-27 16:44:42 +02:00
parent c9c214057e
commit 758986ea0e
12 changed files with 47 additions and 42 deletions

View File

@@ -106,14 +106,12 @@ public:
upperPort = qmlServerPort;
}
if (m_usePerf) {
if (auto perfSettings = runControl()->settings("Analyzer.Perf.Settings")) {
QStringList perfRecordArgs = perfSettings
->property("perfRecordArguments").toStringList();
args.append(QString::fromLatin1(" --profile-perf %1").arg(
Utils::transform(perfRecordArgs, [](QString arg) {
QVariantMap settingsData = runControl()->settingsData("Analyzer.Perf.Settings");
QVariant perfRecordArgs = settingsData.value("Analyzer.Perf.RecordArguments");
QString args = Utils::transform(perfRecordArgs.toStringList(), [](QString arg) {
return arg.replace(',', ",,");
}).join(',')));
}
}).join(',');
args.append(QString(" --profile-perf %1").arg(args));
lowerPort = upperPort = perfPort;
}
args.append(QString(" --port-range %1-%2 ").arg(lowerPort).arg(upperPort));