Function

SysprofAugmentationFunc

Declaration

void
(* SysprofAugmentationFunc) (
  SysprofCallgraph* callgraph,
  SysprofCallgraphNode* node,
  SysprofDocumentFrame* frame,
  gboolean summarize,
  gpointer user_data
)

Description [src]

This function is called for the bottom most node in a trace as it is added to a callgraph.

The augmentation func should augment the node in whatever way it sees fit and generally will want to walk up the node tree to the root to augment the parents as it goes. Your augmentation function is not called for each node, only the deepest node.

If summarize is TRUE, then you should also generate summary augmentation using sysprof_callgraph_get_summary_augment() or similar.

Parameters

callgraph

Type: SysprofCallgraph

The callgraph being augmented.

The data is owned by the caller of the function.
node

Type: SysprofCallgraphNode

The node within the callgraph.

The data is owned by the caller of the function.
frame

Type: SysprofDocumentFrame

The frame used to generate this node.

The data is owned by the caller of the function.
summarize

Type: gboolean

If summaries should be generated.

user_data

Type: gpointer

Closure data for augmentation func.

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