hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/debugger/types.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/debugger/types.h
parent049e7e2aa15debb1ed112494681d7b3e28765679 (diff)
feat: attempt to add a profiler...didn't work
Diffstat (limited to 'src/debugger/types.h')
-rw-r--r--src/debugger/types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/debugger/types.h b/src/debugger/types.h
index 8428c1d..c586665 100644
--- a/src/debugger/types.h
+++ b/src/debugger/types.h
@@ -148,4 +148,19 @@ namespace Hsdbg
uint64_t address = 0;
uint64_t size = 0;
};
+
+ struct TraceCall
+ {
+ double start = 0.0;
+ double duration = 0.0;
+ };
+
+ struct FunctionTrace
+ {
+ uint32_t id = 0;
+ std::string function;
+ int32_t entry_backend_id = 0;
+ uint64_t call_count = 0;
+ std::vector<TraceCall> calls;
+ };
}