mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +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,
|
sysprof_callgraph_get_augment (SysprofCallgraph *self,
|
||||||
SysprofCallgraphNode *node)
|
SysprofCallgraphNode *node)
|
||||||
{
|
{
|
||||||
|
if (node == NULL)
|
||||||
|
node = &self->root;
|
||||||
|
|
||||||
return get_augmentation (self, &node->augment);
|
return get_augmentation (self, &node->augment);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -427,6 +430,9 @@ gpointer
|
|||||||
sysprof_callgraph_get_summary_augment (SysprofCallgraph *self,
|
sysprof_callgraph_get_summary_augment (SysprofCallgraph *self,
|
||||||
SysprofCallgraphNode *node)
|
SysprofCallgraphNode *node)
|
||||||
{
|
{
|
||||||
|
if (node == NULL)
|
||||||
|
node = &self->root;
|
||||||
|
|
||||||
return get_augmentation (self, &node->summary->augment);
|
return get_augmentation (self, &node->summary->augment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user