pollymc/logic/profiler/BaseProfiler.cpp

31 lines
478 B
C++
Raw Normal View History

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