libsysprof: add API to categorize callgraph

This just gets the plumbing in place with some basic categorization for
callgraph information. The real work of categorizing by nick/symbol still
needs to be done (some can be copied from SysprofCategoryIcon).

This also adds a property and getter for SysprofCallgraphFrame which will
expose the node's category to the UI code.
This commit is contained in:
Christian Hergert
2023-07-20 11:26:10 -07:00
parent 5afb315be5
commit 92d2cedb8d
4 changed files with 132 additions and 28 deletions

View File

@ -39,12 +39,13 @@ typedef struct _SysprofCallgraphSummary
struct _SysprofCallgraphNode
{
SysprofCallgraphNode *parent;
SysprofCallgraphNode *prev;
SysprofCallgraphNode *next;
SysprofCallgraphNode *children;
SysprofCallgraphSummary *summary;
gpointer augment[2];
SysprofCallgraphNode *parent;
SysprofCallgraphNode *prev;
SysprofCallgraphNode *next;
SysprofCallgraphNode *children;
SysprofCallgraphSummary *summary;
gpointer augment[2];
SysprofCallgraphCategory category;
};
struct _SysprofCallgraph