Hi,

We are doing something similar in subversion.  It might be
useful to add this.  However, this will screw up stats and
memory usage output (and it will ofcourse only work in
when APR_POOL_DEBUG is defined).

Thoughts?

Sander

Index: memory/unix/apr_pools.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
retrieving revision 1.130
diff -u -r1.130 apr_pools.c
--- memory/unix/apr_pools.c     13 Jan 2002 02:12:24 -0000      1.130
+++ memory/unix/apr_pools.c     13 Jan 2002 02:17:41 -0000
@@ -1160,6 +1160,13 @@
         pool->ref = NULL;
     }

+#if APR_POOL_TAG_DEFAULT
+    /* This will screw up the stats and memory usage indicators
+     * but it may prove useful.
+     */
+    pool->tag = apr_psprintf(pool, "%s:%u", file, line);
+#endif
+
     *newpool = pool;

 #if defined(APR_POOL_DEBUG_VERBOSE)

Reply via email to