From 643287696ea9baccc90a26643b6adb9fabcdf433 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 13 Dec 2025 12:04:35 +0100 Subject: feat: tracing, instrumentation and sampling in the debugger --- src/debugger/types.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/debugger/types.h') 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 calls; }; } -- cgit v1.3