mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: track which nodes are toplevel
We used to do this, and now we have space for it here as we added the categorization field.
This commit is contained in:
@ -191,6 +191,8 @@ sysprof_callgraph_populate_callers (SysprofCallgraph *self,
|
||||
g_assert (SYSPROF_IS_CALLGRAPH (self));
|
||||
g_assert (node != NULL);
|
||||
|
||||
node->is_toplevel = TRUE;
|
||||
|
||||
for (const SysprofCallgraphNode *iter = node;
|
||||
iter != NULL;
|
||||
iter = iter->parent)
|
||||
|
||||
Reference in New Issue
Block a user