hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/debugger/types.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-12-13 12:04:35 +0100
committerhachem <im@hachem.wtf>2025-12-13 12:04:35 +0100
commit643287696ea9baccc90a26643b6adb9fabcdf433 (patch)
treecc614203c39ad7595f96ae4ffa47c8e2ca5ccc29 /src/debugger/types.h
parent5529924dec7b1947dc50e1aee6156d43a0ea4e8c (diff)
feat: tracing, instrumentation and sampling in the debugger
Diffstat (limited to 'src/debugger/types.h')
-rw-r--r--src/debugger/types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/debugger/types.h b/src/debugger/types.h
index c586665..98f216b 100644
--- a/src/debugger/types.h
+++ b/src/debugger/types.h
@@ -155,12 +155,28 @@ namespace Hsdbg
double duration = 0.0;
};
+ struct TimelineSpan
+ {
+ uint32_t trace_id = 0;
+ uint64_t thread_id = 0;
+ double start = 0.0;
+ double duration = 0.0;
+ uint32_t depth = 0;
+ };
+
struct FunctionTrace
{
uint32_t id = 0;
std::string function;
int32_t entry_backend_id = 0;
+
uint64_t call_count = 0;
+ uint64_t completed_count = 0;
+
+ double total_time = 0.0;
+ double min_time = 0.0;
+ double max_time = 0.0;
+
std::vector<TraceCall> calls;
};
}