mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Turn this function into a StackFunction.
Sun Nov 6 17:06:52 2005 Soeren Sandmann <sandmann@redhat.com> * profile.c (add_trace_to_tree): Turn this function into a StackFunction. * stackstash.c (stack_node_foreach_trace): Make this function take a StackFunction, and reimplement with do_callback().
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
c0aed2a4de
commit
c1bfbbf9b8
@ -54,16 +54,14 @@ void stack_stash_add_trace (StackStash *stash,
|
||||
void stack_stash_foreach (StackStash *stash,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
void stack_node_foreach_trace (StackNode *node,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
StackNode *stack_stash_find_node (StackStash *stash,
|
||||
gpointer address);
|
||||
/* FIXME: should probably return a list */
|
||||
void stack_node_list_leaves (StackNode *node,
|
||||
GList **leaves);
|
||||
typedef void (* StackTraceFunction) (GSList *trace, gpointer data);
|
||||
void stack_node_foreach_trace (StackNode *node,
|
||||
StackTraceFunction func,
|
||||
gpointer data);
|
||||
|
||||
typedef void (* StackNodeFunc) (StackNode *node,
|
||||
gpointer data);
|
||||
void stack_stash_foreach_by_address (StackStash *stash,
|
||||
|
||||
Reference in New Issue
Block a user