diff options
author | hjk <hjk@qt.io> | 2021-05-06 13:07:36 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-05-11 09:45:24 +0000 |
commit | f2f40efa03f5303df732310d12efec50251fd075 (patch) | |
tree | c464c4dec218bad87efd7182140629fa927bb184 /src/plugins/perfprofiler | |
parent | 8aafe36d01eba496e3cb6664a5eed9c863152468 (diff) |
Utils: Move process arguments class out of QtcProcess
The main QtcProcess interface is nowadays a CommandLine, with no
explicit references left to QtcProcess::Arguments and related static
helper functions, so it only clutters the QtcProcess class interface
So move these items out of QtcProcess, later potentially to a separate
file pair.
Change-Id: I45c300b656f5b30e2e2717232c855fdd97c2d1d7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r-- | src/plugins/perfprofiler/perfprofilerruncontrol.cpp | 4 | ||||
-rw-r--r-- | src/plugins/perfprofiler/perfsettings.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerruncontrol.cpp b/src/plugins/perfprofiler/perfprofilerruncontrol.cpp index dfccc06d2c0..48bb6cd4bcc 100644 --- a/src/plugins/perfprofiler/perfprofilerruncontrol.cpp +++ b/src/plugins/perfprofiler/perfprofilerruncontrol.cpp @@ -151,11 +151,11 @@ public: arguments << "record"; arguments += m_perfRecordArguments; arguments << "-o" << "-" << "--" << perfRunnable.executable.toString() - << Utils::QtcProcess::splitArgs(perfRunnable.commandLineArguments, + << Utils::ProcessArgs::splitArgs(perfRunnable.commandLineArguments, Utils::OsTypeLinux); perfRunnable.executable = FilePath::fromString("perf"); - perfRunnable.commandLineArguments = Utils::QtcProcess::joinArgs(arguments, + perfRunnable.commandLineArguments = Utils::ProcessArgs::joinArgs(arguments, Utils::OsTypeLinux); m_process->start(perfRunnable); } diff --git a/src/plugins/perfprofiler/perfsettings.cpp b/src/plugins/perfprofiler/perfsettings.cpp index eb7ef40c7f2..9ac361961bf 100644 --- a/src/plugins/perfprofiler/perfsettings.cpp +++ b/src/plugins/perfprofiler/perfsettings.cpp @@ -143,7 +143,7 @@ QStringList PerfSettings::perfRecordArguments() const "--call-graph", callgraphArg, sampleMode.itemValue().toString(), QString::number(period.value())}) - + QtcProcess::splitArgs(extraArguments.value()); + + ProcessArgs::splitArgs(extraArguments.value()); } void PerfSettings::resetToDefault() |