mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Add beginning of a screenshot window.
Mon Nov 7 23:42:26 2005 Soeren Sandmann <sandmann@redhat.com> * sysprof.c: Add beginning of a screenshot window. * sysprof.glade: Add screenshot window plus menu items. * stackstash.c: Remove unused function stack_node_list_leaves() * xmlstore.c: Various crack
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
1bf3734fdb
commit
00244118a2
14
stackstash.c
14
stackstash.c
@ -138,6 +138,7 @@ do_callback (StackNode *node,
|
||||
|
||||
if (trace)
|
||||
trace->prev = &link;
|
||||
|
||||
link.next = trace;
|
||||
link.data = node->address;
|
||||
link.prev = NULL;
|
||||
@ -204,19 +205,6 @@ stack_stash_find_node (StackStash *stash,
|
||||
return g_hash_table_lookup (stash->nodes_by_data, data);
|
||||
}
|
||||
|
||||
void
|
||||
stack_node_list_leaves (StackNode *node,
|
||||
GList **leaves)
|
||||
{
|
||||
StackNode *n;
|
||||
|
||||
if (node->size > 0)
|
||||
*leaves = g_list_prepend (*leaves, node);
|
||||
|
||||
for (n = node->children; n != NULL; n = n->siblings)
|
||||
stack_node_list_leaves (n, leaves);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
StackNodeFunc func;
|
||||
|
||||
Reference in New Issue
Block a user