mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: add getter for callgraph from frame
This commit is contained in:
@ -227,3 +227,19 @@ sysprof_callgraph_frame_get_summary_augment (SysprofCallgraphFrame *self)
|
|||||||
|
|
||||||
return sysprof_callgraph_get_summary_augment (self->callgraph, self->node);
|
return sysprof_callgraph_get_summary_augment (self->callgraph, self->node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sysprof_callgraph_frame_get_callgraph:
|
||||||
|
* @self: a #SysprofCallgraphFrame
|
||||||
|
*
|
||||||
|
* Gets the callgraph the frame belongs to.
|
||||||
|
*
|
||||||
|
* Returns: (transfer none) (nullable): a #SysprofCallgraph, or %NULL
|
||||||
|
*/
|
||||||
|
SysprofCallgraph *
|
||||||
|
sysprof_callgraph_frame_get_callgraph (SysprofCallgraphFrame *self)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (SYSPROF_IS_CALLGRAPH_FRAME (self), NULL);
|
||||||
|
|
||||||
|
return self->callgraph;
|
||||||
|
}
|
||||||
|
|||||||
@ -70,5 +70,7 @@ gpointer sysprof_callgraph_get_summary_augment (SysprofCallg
|
|||||||
SysprofCallgraphNode *node);
|
SysprofCallgraphNode *node);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
SysprofCallgraphNode *sysprof_callgraph_node_parent (SysprofCallgraphNode *node);
|
SysprofCallgraphNode *sysprof_callgraph_node_parent (SysprofCallgraphNode *node);
|
||||||
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
|
SysprofCallgraph *sysprof_callgraph_frame_get_callgraph (SysprofCallgraphFrame *self);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|||||||
Reference in New Issue
Block a user