Method
SysprofDocumentcallgraph_async
Declaration [src]
void
sysprof_document_callgraph_async (
SysprofDocument* self,
SysprofCallgraphFlags flags,
GListModel* traceables,
gsize augment_size,
SysprofAugmentationFunc augment_func,
gpointer augment_func_data,
GDestroyNotify augment_func_data_destroy,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously generates a callgraph using the traceables to get
the call stacks.
Ideally you want augment_size to be <= the size of a pointer to
avoid extra allocations per callgraph node.
This method completes asynchronously. Use sysprof_document_callgraph_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
flags-
Type:
SysprofCallgraphFlagsFlags for generating the callgraph.
traceables-
Type:
GObjectA list model of traceables for the callgraph.
The data is owned by the caller of the method. augment_size-
Type:
gsizeThe size of data to reserve for augmentation in the callgraph.
augment_func-
Type:
SysprofAugmentationFuncan optional callback to be executed for each node in the callgraph traces to augment as the callgraph is generated.
The argument can be NULL. augment_func_data-
Type:
gpointerThe closure data for
augment_func.The argument can be NULL.The data is owned by the caller of the method. augment_func_data_destroy-
Type:
GDestroyNotifyThe destroy callback for
augment_func_data.The argument can be NULL. cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA callback to execute upon completion.
The argument can be NULL. user_data-
Type:
gpointerClosure data for
callback.The argument can be NULL.The data is owned by the caller of the method.