diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 18:15:41 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 18:15:41 +0100 |
commit | c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf (patch) | |
tree | e143457111f52b7627a8092943fd3698c758e4f7 /logic/profiler/BaseProfiler.cpp | |
parent | 6f6d912d07901efebf5f399ee94c458acdc1369b (diff) | |
download | PrismLauncher-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar.gz PrismLauncher-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.tar.bz2 PrismLauncher-c0e58fbfb213c05f0259dab9bf5b7aabd6f373cf.zip |
Try to be cross-platform
Diffstat (limited to 'logic/profiler/BaseProfiler.cpp')
-rw-r--r-- | logic/profiler/BaseProfiler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/logic/profiler/BaseProfiler.cpp b/logic/profiler/BaseProfiler.cpp index 788e9614..7934f6b4 100644 --- a/logic/profiler/BaseProfiler.cpp +++ b/logic/profiler/BaseProfiler.cpp @@ -1,5 +1,7 @@ #include "BaseProfiler.h" +#include <QProcess> + BaseProfiler::BaseProfiler(OneSixInstance *instance, QObject *parent) : QObject(parent), m_instance(instance) { @@ -14,6 +16,15 @@ void BaseProfiler::beginProfiling(MinecraftProcess *process) beginProfilingImpl(process); } +qint64 BaseProfiler::pid(QProcess *process) +{ +#ifdef Q_OS_UNIX + return process->pid(); +#else + return (qint64)process->pid(); +#endif +} + BaseProfilerFactory::~BaseProfilerFactory() { } |