Fix stuff. Make sure different ways of aborting profiling work.

This commit is contained in:
Jan Dalheimer
2014-02-16 08:54:52 +01:00
parent 7ceb2cacb1
commit 82b35b5445
6 changed files with 57 additions and 5 deletions

View File

@@ -19,6 +19,21 @@ void BaseProfiler::beginProfiling(MinecraftProcess *process)
beginProfilingImpl(process);
}
void BaseProfiler::abortProfiling()
{
abortProfiling();
}
void BaseProfiler::abortProfilingImpl()
{
if (!m_profilerProcess)
{
return;
}
m_profilerProcess->terminate();
m_profilerProcess->deleteLater();
}
qint64 BaseProfiler::pid(QProcess *process)
{
#ifdef Q_OS_WIN