mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: implement category inheretance
and remove template type, just keep that with layout.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user