mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
New function. Only warn once about bad CRC's.
Mon Mar 5 16:55:39 2007 Søren Sandmann <sandmann@redhat.com> * binfile.c (already_warned): New function. Only warn once about bad CRC's. svn path=/trunk/; revision=361
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
7800fcd870
commit
7b821752f9
30
profile.c
30
profile.c
@ -75,21 +75,6 @@ create_format (void)
|
||||
return format;
|
||||
}
|
||||
|
||||
static int
|
||||
compute_total (StackNode *node)
|
||||
{
|
||||
StackNode *n;
|
||||
int total = 0;
|
||||
|
||||
for (n = node; n != NULL; n = n->next)
|
||||
{
|
||||
if (n->toplevel)
|
||||
total += n->total;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
static void
|
||||
serialize_call_tree (StackNode *node,
|
||||
SFileOutput *output)
|
||||
@ -599,6 +584,21 @@ profile_caller_free (ProfileCaller *caller)
|
||||
g_free (caller);
|
||||
}
|
||||
|
||||
static int
|
||||
compute_total (StackNode *node)
|
||||
{
|
||||
StackNode *n;
|
||||
int total = 0;
|
||||
|
||||
for (n = node; n != NULL; n = n->next)
|
||||
{
|
||||
if (n->toplevel)
|
||||
total += n->total;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
static void
|
||||
build_object_list (StackNode *node, gpointer data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user