Add debug code to aid in memory-leak tracking: if SHOW_MEMORY_STATS is
Tom Lane <tgl@sss.pgh.pa.us>
Add debug code to aid in memory-leak tracking: if SHOW_MEMORY_STATS is defined then statistics about memory usage of all the global memory contexts are printed after each commit.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/postgres.c | modified | +7 −2 |
| src/backend/utils/mmgr/aset.c | modified | +39 −1 |
| src/backend/utils/mmgr/mcxt.c | modified | +21 −4 |
| src/include/utils/mcxt.h | modified | +2 −1 |
| src/include/utils/memutils.h | modified | +2 −1 |