libsysprof: ensure descendants view is categorized

This commit is contained in:
Christian Hergert
2023-07-20 15:31:50 -07:00
parent 516917d74b
commit dfa893f06a
6 changed files with 31 additions and 16 deletions

View File

@ -24,8 +24,6 @@
#include "sysprof-categories-private.h"
#include "sysprof-symbol-private.h"
static SysprofCategories *categories;
SysprofCallgraphCategory
_sysprof_callgraph_node_categorize (SysprofCallgraphNode *node)
{
@ -47,10 +45,7 @@ _sysprof_callgraph_node_categorize (SysprofCallgraphNode *node)
symbol->binary_nick == NULL)
return SYSPROF_CALLGRAPH_CATEGORY_UNCATEGORIZED;
if G_UNLIKELY (categories == NULL)
categories = sysprof_categories_new ();
category = sysprof_categories_lookup (categories, symbol->binary_nick, symbol->name);
category = sysprof_categories_lookup (NULL, symbol->binary_nick, symbol->name);
if (category == 0)
return SYSPROF_CALLGRAPH_CATEGORY_UNCATEGORIZED;