mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
GH-1053 base process and launch refactor, part 1
This commit is contained in:
parent
d14a61b0df
commit
34ddfc7ecc
29 changed files with 743 additions and 603 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include <QStandardPaths>
|
||||
|
||||
#include "settings/SettingsObject.h"
|
||||
#include "BaseProcess.h"
|
||||
#include "BaseLauncher.h"
|
||||
#include "BaseInstance.h"
|
||||
|
||||
class JVisualVM : public BaseProfiler
|
||||
|
|
@ -18,7 +18,7 @@ private slots:
|
|||
void profilerFinished(int exit, QProcess::ExitStatus status);
|
||||
|
||||
protected:
|
||||
void beginProfilingImpl(BaseProcess *process);
|
||||
void beginProfilingImpl(BaseLauncher *process);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -45,12 +45,12 @@ void JVisualVM::profilerFinished(int exit, QProcess::ExitStatus status)
|
|||
}
|
||||
}
|
||||
|
||||
void JVisualVM::beginProfilingImpl(BaseProcess *process)
|
||||
void JVisualVM::beginProfilingImpl(BaseLauncher *process)
|
||||
{
|
||||
QProcess *profiler = new QProcess(this);
|
||||
QStringList profilerArgs =
|
||||
{
|
||||
"--openpid", QString::number(pid(process))
|
||||
"--openpid", QString::number(process->pid())
|
||||
};
|
||||
auto programPath = globalSettings->get("JVisualVMPath").toString();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue