mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
libsysprof: ensure we update count for root node
This commit is contained in:
@ -225,6 +225,7 @@ sysprof_callgraph_add_trace (SysprofCallgraph *self,
|
|||||||
g_assert (symbols[n_symbols-1] == everything);
|
g_assert (symbols[n_symbols-1] == everything);
|
||||||
|
|
||||||
parent = &self->root;
|
parent = &self->root;
|
||||||
|
parent->count++;
|
||||||
|
|
||||||
for (guint i = n_symbols - 1; i > 0; i--)
|
for (guint i = n_symbols - 1; i > 0; i--)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user