summaryrefslogtreecommitdiffstats
path: root/logic/profiler/JVisualVM.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/profiler/JVisualVM.h')
-rw-r--r--logic/profiler/JVisualVM.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/logic/profiler/JVisualVM.h b/logic/profiler/JVisualVM.h
new file mode 100644
index 00000000..e72b75d9
--- /dev/null
+++ b/logic/profiler/JVisualVM.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "BaseProfiler.h"
+
+class JVisualVM : public BaseProfiler
+{
+ Q_OBJECT
+public:
+ JVisualVM(OneSixInstance *instance, QObject *parent = 0);
+
+protected:
+ void beginProfilingImpl(MinecraftProcess *process);
+};
+
+class JVisualVMFactory : public BaseProfilerFactory
+{
+public:
+ void registerSettings(SettingsObject *settings) override;
+ BaseProfiler *createProfiler(OneSixInstance *instance, QObject *parent = 0) override;
+ bool check(const QString &path, QString *error) override;
+};