Only build GUI when the necessary dependencies are found.

Sat Jan 14 18:24:43 2006  Soeren Sandmann  <sandmann@redhat.com>

        * configure.ac, Makefile.am: Only build GUI when the necessary
        dependencies are found.

        * sysprof.c (compute_text_width): Remove unused variable

        * profile.c (build_object_list): Follow next instead of siblings.
This commit is contained in:
Soeren Sandmann
2006-01-14 23:26:34 +00:00
committed by Søren Sandmann Pedersen
parent 9125c4e644
commit 98308836af
7 changed files with 39 additions and 12 deletions

View File

@ -331,6 +331,8 @@ profile_create_descendants (Profile *profile,
while (node)
{
g_print ("node: %s (%d)\n", node->address, node->size);
if (node->toplevel)
stack_node_foreach_trace (node, add_trace_to_tree, &tree);
@ -473,7 +475,7 @@ build_object_list (StackNode *node, gpointer data)
obj->total = compute_total (node);
obj->self = 0;
for (n = node; n != NULL; n = n->siblings)
for (n = node; n != NULL; n = n->next)
obj->self += n->size;
*objects = g_list_prepend (*objects, obj);