Underp and fix some stuff. Works nicer now.
This commit is contained in:
		@@ -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")); });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user