mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
Underp and fix some stuff. Works nicer now.
This commit is contained in:
parent
efa8e26a3f
commit
6f6d912d07
2 changed files with 1 additions and 5 deletions
|
|
@ -14,9 +14,7 @@ JVisualVM::JVisualVM(OneSixInstance *instance, QObject *parent) : BaseProfiler(i
|
|||
void JVisualVM::beginProfilingImpl(MinecraftProcess *process)
|
||||
{
|
||||
QProcess *profiler = new QProcess(this);
|
||||
profiler->setArguments(QStringList() << "--jdkhome"
|
||||
<< m_instance->settings().get("JavaPath").toString()
|
||||
<< "--openpid" << QString::number(process->pid()));
|
||||
profiler->setArguments(QStringList() << "--openpid" << QString::number(process->pid()));
|
||||
profiler->setProgram("jvisualvm");
|
||||
connect(profiler, &QProcess::started, [this]()
|
||||
{ emit readyToLaunch(tr("JVisualVM started")); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue