libsysprof: ensure we update count for root node

This commit is contained in:
Christian Hergert
2023-08-25 12:41:52 -07:00
parent 677c6a19a7
commit 3de88108ce

View File

@ -225,6 +225,7 @@ sysprof_callgraph_add_trace (SysprofCallgraph *self,
g_assert (symbols[n_symbols-1] == everything);
parent = &self->root;
parent->count++;
for (guint i = n_symbols - 1; i > 0; i--)
{