Underp and fix some stuff. Works nicer now.
This commit is contained in:
parent
efa8e26a3f
commit
6f6d912d07
@ -24,8 +24,6 @@ void JProfiler::beginProfilingImpl(MinecraftProcess *process)
|
||||
{ emit readyToLaunch(tr("Listening on port: %1").arg(port)); });
|
||||
connect(profiler, SIGNAL(finished(int)), profiler, SLOT(deleteLater()));
|
||||
profiler->start();
|
||||
QMessageBox::information(0, tr("JProfiler"),
|
||||
tr("JProfiler started and listening on port %1").arg(port));
|
||||
}
|
||||
|
||||
void JProfilerFactory::registerSettings(SettingsObject *settings)
|
||||
|
@ -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…
Reference in New Issue
Block a user