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: SysprofCallgraphFlags

Flags for generating the callgraph.

traceables

Type: GObject

A list model of traceables for the callgraph.

The data is owned by the caller of the method.
augment_size

Type: gsize

The size of data to reserve for augmentation in the callgraph.

augment_func

Type: SysprofAugmentationFunc

an 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: gpointer

The 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: GDestroyNotify

The destroy callback for augment_func_data.

The argument can be NULL.
cancellable

Type: GCancellable

A GCancellable or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A callback to execute upon completion.

The argument can be NULL.
user_data

Type: gpointer

Closure data for callback.

The argument can be NULL.
The data is owned by the caller of the method.