GH-1053 move launch related things and rename them
This commit is contained in:
@ -7,7 +7,7 @@ BaseProfiler::BaseProfiler(SettingsObjectPtr settings, InstancePtr instance, QOb
|
||||
{
|
||||
}
|
||||
|
||||
void BaseProfiler::beginProfiling(std::shared_ptr<BaseLauncher> process)
|
||||
void BaseProfiler::beginProfiling(std::shared_ptr<LaunchTask> process)
|
||||
{
|
||||
beginProfilingImpl(process);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
class BaseInstance;
|
||||
class SettingsObject;
|
||||
class BaseLauncher;
|
||||
class LaunchTask;
|
||||
class QProcess;
|
||||
|
||||
class BaseProfiler : public BaseExternalTool
|
||||
@ -15,13 +15,13 @@ public:
|
||||
|
||||
public
|
||||
slots:
|
||||
void beginProfiling(std::shared_ptr<BaseLauncher> process);
|
||||
void beginProfiling(std::shared_ptr<LaunchTask> process);
|
||||
void abortProfiling();
|
||||
|
||||
protected:
|
||||
QProcess *m_profilerProcess;
|
||||
|
||||
virtual void beginProfilingImpl(std::shared_ptr<BaseLauncher> process) = 0;
|
||||
virtual void beginProfilingImpl(std::shared_ptr<LaunchTask> process) = 0;
|
||||
virtual void abortProfilingImpl();
|
||||
|
||||
signals:
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "settings/SettingsObject.h"
|
||||
#include "BaseLauncher.h"
|
||||
#include "launch/LaunchTask.h"
|
||||
#include "BaseInstance.h"
|
||||
|
||||
class JProfiler : public BaseProfiler
|
||||
@ -18,7 +18,7 @@ private slots:
|
||||
void profilerFinished(int exit, QProcess::ExitStatus status);
|
||||
|
||||
protected:
|
||||
void beginProfilingImpl(std::shared_ptr<BaseLauncher> process);
|
||||
void beginProfilingImpl(std::shared_ptr<LaunchTask> process);
|
||||
|
||||
private:
|
||||
int listeningPort = 0;
|
||||
@ -48,7 +48,7 @@ void JProfiler::profilerFinished(int exit, QProcess::ExitStatus status)
|
||||
}
|
||||
}
|
||||
|
||||
void JProfiler::beginProfilingImpl(std::shared_ptr<BaseLauncher> process)
|
||||
void JProfiler::beginProfilingImpl(std::shared_ptr<LaunchTask> process)
|
||||
{
|
||||
listeningPort = globalSettings->get("JProfilerPort").toInt();
|
||||
QProcess *profiler = new QProcess(this);
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include "settings/SettingsObject.h"
|
||||
#include "BaseLauncher.h"
|
||||
#include "launch/LaunchTask.h"
|
||||
#include "BaseInstance.h"
|
||||
|
||||
class JVisualVM : public BaseProfiler
|
||||
@ -18,7 +18,7 @@ private slots:
|
||||
void profilerFinished(int exit, QProcess::ExitStatus status);
|
||||
|
||||
protected:
|
||||
void beginProfilingImpl(std::shared_ptr<BaseLauncher> process);
|
||||
void beginProfilingImpl(std::shared_ptr<LaunchTask> process);
|
||||
};
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ void JVisualVM::profilerFinished(int exit, QProcess::ExitStatus status)
|
||||
}
|
||||
}
|
||||
|
||||
void JVisualVM::beginProfilingImpl(std::shared_ptr<BaseLauncher> process)
|
||||
void JVisualVM::beginProfilingImpl(std::shared_ptr<LaunchTask> process)
|
||||
{
|
||||
QProcess *profiler = new QProcess(this);
|
||||
QStringList profilerArgs =
|
||||
|
Reference in New Issue
Block a user