summaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/debugger/profiler.h')
-rw-r--r--src/yuzu/debugger/profiler.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/yuzu/debugger/profiler.h b/src/yuzu/debugger/profiler.h
new file mode 100644
index 000000000..eae1e9e3c
--- /dev/null
+++ b/src/yuzu/debugger/profiler.h
@@ -0,0 +1,27 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <QAbstractItemModel>
+#include <QDockWidget>
+#include <QTimer>
+#include "common/microprofile.h"
+
+class MicroProfileDialog : public QWidget {
+ Q_OBJECT
+
+public:
+ explicit MicroProfileDialog(QWidget* parent = nullptr);
+
+ /// Returns a QAction that can be used to toggle visibility of this dialog.
+ QAction* toggleViewAction();
+
+protected:
+ void showEvent(QShowEvent* ev) override;
+ void hideEvent(QHideEvent* ev) override;
+
+private:
+ QAction* toggle_view_action = nullptr;
+};