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

@ -205,7 +205,7 @@ profile_load (const char *filename, GError **err)
n = sfile_begin_get_list (input, "nodes");
for (i = 0; i < n; ++i)
{
StackNode *node = stack_node_new ();
StackNode *node = stack_node_new (profile->stash);
gboolean toplevel;
gint32 size;
gint32 total;