mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: allow getting root augments with NULL
This commit is contained in:
@ -420,6 +420,9 @@ gpointer
|
||||
sysprof_callgraph_get_augment (SysprofCallgraph *self,
|
||||
SysprofCallgraphNode *node)
|
||||
{
|
||||
if (node == NULL)
|
||||
node = &self->root;
|
||||
|
||||
return get_augmentation (self, &node->augment);
|
||||
}
|
||||
|
||||
@ -427,6 +430,9 @@ gpointer
|
||||
sysprof_callgraph_get_summary_augment (SysprofCallgraph *self,
|
||||
SysprofCallgraphNode *node)
|
||||
{
|
||||
if (node == NULL)
|
||||
node = &self->root;
|
||||
|
||||
return get_augmentation (self, &node->summary->augment);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user