forked from qt-creator/qt-creator
ProjectExplorer: Use Utils::CommandLine in ProjectExplorer::Runnable
Change-Id: Id965f1f9047dcbc3ea5c9ddaa550d12668cf8ae6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -150,13 +150,11 @@ public:
|
||||
QStringList arguments;
|
||||
arguments << "record";
|
||||
arguments += m_perfRecordArguments;
|
||||
arguments << "-o" << "-" << "--" << perfRunnable.executable.toString()
|
||||
<< Utils::ProcessArgs::splitArgs(perfRunnable.commandLineArguments,
|
||||
Utils::OsTypeLinux);
|
||||
arguments << "-o" << "-" << "--" << perfRunnable.command.executable().toString()
|
||||
<< ProcessArgs::splitArgs(perfRunnable.command.arguments(), OsTypeLinux);
|
||||
|
||||
perfRunnable.executable = FilePath::fromString("perf");
|
||||
perfRunnable.commandLineArguments = Utils::ProcessArgs::joinArgs(arguments,
|
||||
Utils::OsTypeLinux);
|
||||
perfRunnable.command.setExecutable(FilePath::fromString("perf"));
|
||||
perfRunnable.command.setArguments(ProcessArgs::joinArgs(arguments, OsTypeLinux));
|
||||
m_process->start(perfRunnable);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user