mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: keep count in callgraph node
I don't want this to overlap with augmentation data, or be augmentation data specific, so just keep our own private copy of this data in the node to do the sort of things we want with it (such as summaries).
This commit is contained in:
@ -191,8 +191,6 @@ 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)
|
||||
@ -431,6 +429,9 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self,
|
||||
list_model_index,
|
||||
!!(self->flags & SYSPROF_CALLGRAPH_FLAGS_HIDE_SYSTEM_LIBRARIES));
|
||||
|
||||
node->is_toplevel = TRUE;
|
||||
node->count++;
|
||||
|
||||
if (node && self->augment_func)
|
||||
self->augment_func (self,
|
||||
node,
|
||||
|
||||
Reference in New Issue
Block a user