MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / beginProfilingImpl

Method beginProfilingImpl

launcher/tools/JVisualVM.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void JVisualVM::beginProfilingImpl(shared_qobject_ptr<LaunchTask> process)
42{
43 QProcess* profiler = new QProcess(this);
44 QStringList profilerArgs = { "--openpid", QString::number(process->pid()) };
45 auto programPath = globalSettings->get("JVisualVMPath").toString();
46
47 profiler->setArguments(profilerArgs);
48 profiler->setProgram(programPath);
49
50 connect(profiler, &QProcess::started, this, &JVisualVM::profilerStarted);
51 connect(profiler, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &JVisualVM::profilerFinished);
52
53 profiler->start();
54 m_profilerProcess = profiler;
55}
56
57void JVisualVMFactory::registerSettings(SettingsObjectPtr settings)
58{

Callers

nothing calls this directly

Calls 4

pidMethod · 0.80
toStringMethod · 0.45
getMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected