libsysprof-analyze: add summary augmentation capabilities

This allows us to have augmentation at the summary level so that things
like the weighted callgraph or memprof callgraph can add their respective
summary data up the chain of function calls.
This commit is contained in:
Christian Hergert
2023-06-09 11:19:40 -07:00
parent 900c39c0d8
commit 814c25d45a
4 changed files with 79 additions and 39 deletions

View File

@ -25,16 +25,26 @@
#include "sysprof-callgraph.h"
#include "sysprof-document.h"
#include "eggbitset.h"
G_BEGIN_DECLS
typedef struct _SysprofCallgraphSummary
{
SysprofSymbol *symbol;
EggBitset *traceables;
GPtrArray *callers;
gpointer augment;
} SysprofCallgraphSummary;
struct _SysprofCallgraphNode
{
SysprofCallgraphNode *parent;
SysprofCallgraphNode *prev;
SysprofCallgraphNode *next;
SysprofCallgraphNode *children;
SysprofSymbol *symbol;
gpointer augment;
SysprofCallgraphNode *parent;
SysprofCallgraphNode *prev;
SysprofCallgraphNode *next;
SysprofCallgraphNode *children;
SysprofCallgraphSummary *summary;
gpointer augment;
};
void _sysprof_callgraph_new_async (SysprofDocument *document,