libsysprof: implement category inheretance

and remove template type, just keep that with layout.
This commit is contained in:
Christian Hergert
2023-07-20 13:07:51 -07:00
parent ecdcfb83d0
commit 4d2cdb2abe
6 changed files with 64 additions and 52 deletions

View File

@ -504,7 +504,7 @@ sysprof_callgraph_frame_get_category (SysprofCallgraphFrame *self)
g_return_val_if_fail (SYSPROF_IS_CALLGRAPH_FRAME (self), 0);
if (self->callgraph != NULL && self->node != NULL && self->node->category)
return self->node->category;
return self->node->category & ~SYSPROF_CALLGRAPH_CATEGORY_INHERIT;
return SYSPROF_CALLGRAPH_CATEGORY_UNCATEGORIZED;
}