libsysprof: allow listing traceables from a node

This will allow use from the flamegraph which does not use
SysprofCallgraphFrame objects.

Related #95
This commit is contained in:
Christian Hergert
2023-08-29 11:25:06 -07:00
parent e5413f7fd8
commit b46fe4dd75
3 changed files with 250 additions and 185 deletions

View File

@ -139,5 +139,15 @@ SYSPROF_AVAILABLE_IN_ALL
SysprofCallgraphCategory sysprof_callgraph_frame_get_category (SysprofCallgraphFrame *self);
SYSPROF_AVAILABLE_IN_ALL
SysprofCallgraph *sysprof_callgraph_symbol_get_callgraph (SysprofCallgraphSymbol *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_callgraph_list_traceables_for_node_async (SysprofCallgraph *self,
SysprofCallgraphNode *node,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_callgraph_list_traceables_for_node_finish (SysprofCallgraph *self,
GAsyncResult *result,
GError **error);
G_END_DECLS