diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 14:19:35 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 14:19:35 +0100 |
commit | efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0 (patch) | |
tree | 4fcd3e9f210c92dbeac9f820f2ab1fd2d6dd9e58 /logic/profiler/JProfiler.h | |
parent | 5cf599673db88b39100ffca78e10bbe5e10200d7 (diff) | |
download | MultiMC-efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0.tar MultiMC-efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0.tar.gz MultiMC-efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0.tar.lz MultiMC-efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0.tar.xz MultiMC-efa8e26a3f3f7ba5e536cd10e86303b4fe1baba0.zip |
Profiler support. Currently JProfiler and JVisualVM are implemented.
Diffstat (limited to 'logic/profiler/JProfiler.h')
-rw-r--r-- | logic/profiler/JProfiler.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/logic/profiler/JProfiler.h b/logic/profiler/JProfiler.h new file mode 100644 index 00000000..9fa3591a --- /dev/null +++ b/logic/profiler/JProfiler.h @@ -0,0 +1,21 @@ +#pragma once + +#include "BaseProfiler.h" + +class JProfiler : public BaseProfiler +{ + Q_OBJECT +public: + JProfiler(OneSixInstance *instance, QObject *parent = 0); + +protected: + void beginProfilingImpl(MinecraftProcess *process); +}; + +class JProfilerFactory : public BaseProfilerFactory +{ +public: + void registerSettings(SettingsObject *settings) override; + BaseProfiler *createProfiler(OneSixInstance *instance, QObject *parent = 0) override; + bool check(const QString &path, QString *error) override; +}; |