reset the collector after generating the profile.

2006-11-20  Soren Sandmann <sandmann@daimi.au.dk>

        * sysprof.c (ensure_profile): reset the collector after generating
        the profile.

        * stackstash.c (struct StackStash): Add cached_nodes and blocks.
        (stack_node_new): Allocate stack nodes in blocks.
This commit is contained in:
Soren Sandmann
2006-11-20 07:25:02 +00:00
committed by Søren Sandmann Pedersen
parent cce917856b
commit d1a082ffec
6 changed files with 75 additions and 44 deletions

View File

@ -49,7 +49,7 @@ typedef void (* StackNodeFunc) (StackNode *node,
/* Stach */
StackStash *stack_stash_new (GDestroyNotify destroy);
StackNode * stack_node_new (void);
StackNode * stack_node_new (StackStash *stash);
void stack_stash_add_trace (StackStash *stash,
gulong *addrs,
gint n_addrs,