diff options
author | Soeren Sandmann <sandmann@redhat.com> | 2005-11-01 04:37:16 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-11-01 04:37:16 +0000 |
commit | c778a1b1ecd8daf2dffe3dbe09284128a1e9d20a (patch) | |
tree | 52ba005e0dab83adaab9c742373e3a252bded574 /stackstash.h | |
parent | 81ad1816670c070199b91780131414bcde64ba03 (diff) |
Add "total" field.
Mon Oct 31 23:41:33 2005 Soeren Sandmann <sandmann@redhat.com>
* stackstash.h (struct StackNode): Add "total" field.
* stackstash.c (stack_stash_add_trace): Keep track of the
aggregate size.
* profile.c (profile_get_size): Sum the totals of the siblings
instead of all the children.
* profile.c (build_object_list): Correctly compute obj->self
* profile.c (profile_load): Don't ignore the node->total field.
* profile.c (serialize_call_tree): Save node->total instead of the
computed total
* profile.c (compute_total): Use n->total instead of computing it
from scratch.
* profile.c: Remove unused sum_children() function.
* TODO: Updates
* process.c (process_get_from_pid): Plug leak.
Diffstat (limited to 'stackstash.h')
-rw-r--r-- | stackstash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stackstash.h b/stackstash.h index 1372be7..a75b339 100644 --- a/stackstash.h +++ b/stackstash.h @@ -29,6 +29,7 @@ typedef struct StackNode StackNode; struct StackNode { gpointer address; + int total; int size; StackNode * parent; |