From 632d42376453da10a4ca0eb9ea7bc8c25e4e7037 Mon Sep 17 00:00:00 2001 From: Patrick Lipka Date: Thu, 7 Aug 2025 16:07:15 +0200 Subject: [PATCH] Add stack info struct --- src/rvprof_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rvprof_internal.h b/src/rvprof_internal.h index aa6234d..e7c42e0 100644 --- a/src/rvprof_internal.h +++ b/src/rvprof_internal.h @@ -71,6 +71,12 @@ typedef struct { double inclusive_percent; } function_stats_t; +// stack info +typedef struct { + char* stack_path; + int stid; +} stack_info_t; + // dynamic array structure (could switch to a more sophisticated container + template if we would move to C++ at some point) #define DECLARE_DYNAMIC_ARRAY(type, name) \ typedef struct { \ @@ -82,6 +88,7 @@ typedef struct { \ DECLARE_DYNAMIC_ARRAY(region_t, region); DECLARE_DYNAMIC_ARRAY(function_stats_t, function_stats); DECLARE_DYNAMIC_ARRAY(symbol_entry_t, symbol); +DECLARE_DYNAMIC_ARRAY(stack_info_t, stack_info); #ifdef __cplusplus }