diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-11 22:21:37 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-30 07:16:20 +0200 |
commit | 34ddfc7ecc2b0450b3d501e65cb4203ac747ed42 (patch) | |
tree | c53d32ac89aa996347901ea64f25909231a75895 /logic/tools/JProfiler.cpp | |
parent | d14a61b0df38d150e1449b19b7eee411e91e5211 (diff) | |
download | PrismLauncher-34ddfc7ecc2b0450b3d501e65cb4203ac747ed42.tar.gz PrismLauncher-34ddfc7ecc2b0450b3d501e65cb4203ac747ed42.tar.bz2 PrismLauncher-34ddfc7ecc2b0450b3d501e65cb4203ac747ed42.zip |
GH-1053 base process and launch refactor, part 1
Diffstat (limited to 'logic/tools/JProfiler.cpp')
-rw-r--r-- | logic/tools/JProfiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/tools/JProfiler.cpp b/logic/tools/JProfiler.cpp index 2522f2b3..73121239 100644 --- a/logic/tools/JProfiler.cpp +++ b/logic/tools/JProfiler.cpp @@ -4,7 +4,7 @@ #include <QMessageBox> #include "settings/SettingsObject.h" -#include "BaseProcess.h" +#include "BaseLauncher.h" #include "BaseInstance.h" class JProfiler : public BaseProfiler @@ -18,7 +18,7 @@ private slots: void profilerFinished(int exit, QProcess::ExitStatus status); protected: - void beginProfilingImpl(BaseProcess *process); + void beginProfilingImpl(BaseLauncher *process); private: int listeningPort = 0; @@ -48,13 +48,13 @@ void JProfiler::profilerFinished(int exit, QProcess::ExitStatus status) } } -void JProfiler::beginProfilingImpl(BaseProcess *process) +void JProfiler::beginProfilingImpl(BaseLauncher *process) { listeningPort = globalSettings->get("JProfilerPort").toInt(); QProcess *profiler = new QProcess(this); QStringList profilerArgs = { - "-d", QString::number(pid(process)), + "-d", QString::number(process->pid()), "--gui", "-p", QString::number(listeningPort) }; |