hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-09-26 16:58:48 +0200
committerhachem <im@hachem.wtf>2025-09-26 16:58:48 +0200
commit7e53abd75355caa817532c71a935b6a231b3cd9e (patch)
tree61538f78ffa156bea4a85163eb604b4553856424 /src/ui/ui.h
parent049e7e2aa15debb1ed112494681d7b3e28765679 (diff)
feat: attempt to add a profiler...didn't work
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r--src/ui/ui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 3bb6375..dc2f76e 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -4,6 +4,7 @@
#include "ui/animated_image.h"
#include "ui/image_renderer.h"
#include "ui/preferences.h"
+#include "ui/profiler.h"
#include "ui/source_view.h"
#include <cstdint>
@@ -48,6 +49,7 @@ namespace Hsdbg
bool symbols = true;
bool disassembly = true;
bool console = true;
+ bool profiler = true;
bool demo = false;
};
@@ -71,6 +73,7 @@ namespace Hsdbg
auto draw_symbols_panel(Debugger& debugger) -> void;
auto draw_disassembly_panel(Debugger& debugger) -> void;
auto draw_console_panel(Debugger& debugger) -> void;
+ auto draw_profiler_panel(Debugger& debugger) -> void;
auto push_console(std::string line) -> void;
auto report(const Result<void>& result, std::string_view action) -> void;
@@ -81,6 +84,7 @@ namespace Hsdbg
Window* m_window = nullptr;
SourceView m_source_view;
+ Profiler m_profiler;
PanelVisibility m_visible;
Preferences m_preferences;
@@ -105,6 +109,7 @@ namespace Hsdbg
std::string m_target_input;
std::string m_symbol_filter;
std::string m_source_filter;
+ std::string m_trace_input;
uint64_t m_followed_stop = 0;
std::filesystem::path m_followed_target;