apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject svn commit: r1674566 - /apr/apr/trunk/memory/unix/apr_pools.c
Date Sat, 18 Apr 2015 19:14:19 GMT
Author: striker
Date: Sat Apr 18 19:14:19 2015
New Revision: 1674566

URL: http://svn.apache.org/r1674566
Log:
Expand apr pools debug output with parent information.

* memory/unix/apr_pools.c
  (apr_pool_initialize): Add parent to debug header.
  (apr_pool_log_event): Add parent to debug output.

Modified:
    apr/apr/trunk/memory/unix/apr_pools.c

Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=1674566&r1=1674565&r2=1674566&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Sat Apr 18 19:14:19 2015
@@ -1501,6 +1501,7 @@ static void apr_pool_log_event(apr_pool_
                 "(%10lu/%10lu/%10lu) "
                 "0x%pp \"%s\" "
                 "<%s> "
+                "0x%pp "
                 "(%u/%u/%u) "
                 "\n",
                 (unsigned long)getpid(),
@@ -1513,6 +1514,7 @@ static void apr_pool_log_event(apr_pool_
                 (unsigned long)apr_pool_num_bytes(global_pool, 1),
                 pool, pool->tag,
                 file_line,
+                pool->parent,
                 pool->stat_alloc, pool->stat_total_alloc, pool->stat_clear);
         }
         else {
@@ -1681,7 +1683,7 @@ APR_DECLARE(apr_status_t) apr_pool_initi
             "/TID"
 #endif /* APR_HAS_THREADS */
             "] ACTION  (SIZE      /POOL SIZE /TOTAL SIZE) "
-            "POOL       \"TAG\" <__FILE__:__LINE__> (ALLOCS/TOTAL ALLOCS/CLEARS)\n");
+            "POOL       \"TAG\" <__FILE__:__LINE__> PARENT     (ALLOCS/TOTAL ALLOCS/CLEARS)\n");
 
         apr_pool_log_event(global_pool, "GLOBAL", __FILE__ ":apr_pool_initialize", 0);
     }



Mime
View raw message