summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/statdebugtab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-07 20:58:59 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-07 20:58:59 +0300
commit32b9e2070b3cf44b6b38ab0c0383b85e87852d50 (patch)
tree352d7a4c3dcb8fbffadeb127cee0090aa98d073a /src/gui/widgets/tabs/statdebugtab.h
parentabfc18794cbd9119c110f32e39ea48a00e5b9214 (diff)
downloadmv-32b9e2070b3cf44b6b38ab0c0383b85e87852d50.tar.gz
mv-32b9e2070b3cf44b6b38ab0c0383b85e87852d50.tar.bz2
mv-32b9e2070b3cf44b6b38ab0c0383b85e87852d50.tar.xz
mv-32b9e2070b3cf44b6b38ab0c0383b85e87852d50.zip
Add basic performance counters.
Add in debug window new tab with this counters.
Diffstat (limited to 'src/gui/widgets/tabs/statdebugtab.h')
-rw-r--r--src/gui/widgets/tabs/statdebugtab.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/statdebugtab.h b/src/gui/widgets/tabs/statdebugtab.h
index d52ff63af..57b2e9f4a 100644
--- a/src/gui/widgets/tabs/statdebugtab.h
+++ b/src/gui/widgets/tabs/statdebugtab.h
@@ -23,9 +23,15 @@
#include "gui/widgets/tabs/debugtab.h"
+#include "const/utils/perfstat.h"
+
+#include "listeners/actionlistener.h"
+
+class Button;
class Label;
-class StatDebugTab final : public DebugTab
+class StatDebugTab final : public DebugTab,
+ public ActionListener
{
friend class DebugWindow;
@@ -36,8 +42,14 @@ class StatDebugTab final : public DebugTab
void logic() override final;
+ void action(const ActionEvent &event) override;
+
private:
Label *mLPSLabel A_NONNULLPOINTER;
+ Button *mResetButton A_NONNULLPOINTER;
+ Button *mCopyButton A_NONNULLPOINTER;
+ Label *mStatLabels[PERFSTAT_LAST_STAT - 1] A_NONNULLPOINTER;
+ size_t mDrawIndex;
};
#endif // GUI_WIDGETS_TABS_STATDEBUGTAB_H