2014-02-15 13:19:35 +00:00
|
|
|
#include "BaseProfiler.h"
|
|
|
|
|
2014-02-15 17:15:41 +00:00
|
|
|
#include <QProcess>
|
|
|
|
|
2014-02-15 13:19:35 +00:00
|
|
|
BaseProfiler::BaseProfiler(OneSixInstance *instance, QObject *parent)
|
|
|
|
: QObject(parent), m_instance(instance)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
BaseProfiler::~BaseProfiler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void BaseProfiler::beginProfiling(MinecraftProcess *process)
|
|
|
|
{
|
|
|
|
beginProfilingImpl(process);
|
|
|
|
}
|
|
|
|
|
2014-02-15 17:15:41 +00:00
|
|
|
qint64 BaseProfiler::pid(QProcess *process)
|
|
|
|
{
|
|
|
|
#ifdef Q_OS_UNIX
|
|
|
|
return process->pid();
|
|
|
|
#else
|
|
|
|
return (qint64)process->pid();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2014-02-15 13:19:35 +00:00
|
|
|
BaseProfilerFactory::~BaseProfilerFactory()
|
|
|
|
{
|
|
|
|
}
|