diff --git a/node.c b/node.c index b63017a..99f9e89 100644 --- a/node.c +++ b/node.c @@ -997,6 +997,7 @@ more_blocks(int id) BLOCK *freep, *np, *next; char *p, *endp; size_t size; + static size_t acnt[BLOCK_MAX]; size = nextfree[id].size; @@ -1013,5 +1014,8 @@ more_blocks(int id) np->freep = next; } nextfree[id].freep = freep->freep; + acnt[id] += BLOCKCHUNK; + fprintf(stderr, "debug: more_blocks(%d) allocated %u; total %zu\n", + id, BLOCKCHUNK, acnt[id]); return freep; }