Add stack info struct

This commit is contained in:
Patrick Lipka 2025-08-07 16:07:15 +02:00
parent 1b5e488b45
commit 632d423764
1 changed files with 7 additions and 0 deletions

View File

@ -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
}