diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-16 12:52:35 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-16 12:52:35 +0100 |
commit | 9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79 (patch) | |
tree | cac60e920a67584cf90805382db4464c0e23b03e /logic/tools/JProfiler.h | |
parent | f26b7dedad70a46769b4c96122a7615b328a9fbb (diff) | |
download | MultiMC-9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79.tar MultiMC-9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79.tar.gz MultiMC-9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79.tar.lz MultiMC-9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79.tar.xz MultiMC-9c87bc6c4b99f0c93f2b18039208dcf9f3fb4d79.zip |
Restructure
Diffstat (limited to 'logic/tools/JProfiler.h')
-rw-r--r-- | logic/tools/JProfiler.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/logic/tools/JProfiler.h b/logic/tools/JProfiler.h new file mode 100644 index 00000000..88a02462 --- /dev/null +++ b/logic/tools/JProfiler.h @@ -0,0 +1,23 @@ +#pragma once + +#include "BaseProfiler.h" + +class JProfiler : public BaseProfiler +{ + Q_OBJECT +public: + JProfiler(BaseInstance *instance, QObject *parent = 0); + +protected: + void beginProfilingImpl(MinecraftProcess *process); +}; + +class JProfilerFactory : public BaseProfilerFactory +{ +public: + QString name() const override { return "JProfiler"; } + void registerSettings(SettingsObject *settings) override; + BaseExternalTool *createTool(BaseInstance *instance, QObject *parent = 0) override; + bool check(QString *error) override; + bool check(const QString &path, QString *error) override; +}; |