MINOR: debug: add a new "debug dev memstats" command
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 07:14:48 +0000 (09:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 07:14:48 +0000 (09:14 +0200)
commita6026a0c92ec503303e095e9c1b7cfb5b061d661
treeb913aff4ee0ca5341fc3ba5bcb9c6659a8affc98
parentd1ba552e41731266b89342628f403bf6b1ceb67c
MINOR: debug: add a new "debug dev memstats" command

Now when building with -DDEBUG_MEM_STATS, some malloc/calloc/strdup/realloc
stats are kept per file+line number and may be displayed and even reset on
the CLI using "debug dev memstats". This allows to easily track potential
leakers or abnormal usages.
include/haproxy/bug.h
src/debug.c