]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: add new option USE_MEMORY_PROFILING
authorWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 16:17:39 +0000 (18:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 17:09:19 +0000 (19:09 +0200)
It is not enabled by default, and may only work on linux-glibc for now,
though maybe other platforms could adopt it, possibly with certain
restrictions.

Makefile

index 46ae734d92cc3700e2e06341d9d976c43c5d165e..2d0b7d8171c6d5f2fc4b01ce72dbd260b6868557 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,7 @@
 #   USE_OBSOLETE_LINKER  : use when the linker fails to emit __start_init/__stop_init
 #   USE_THREAD_DUMP      : use the more advanced thread state dump system. Automatic.
 #   USE_OT               : enable the OpenTracing filter
+#   USE_MEMORY_PROFILING : enable the memory profiler. Linux-glibc only.
 #
 # Options can be forced by specifying "USE_xxx=1" or can be disabled by using
 # "USE_xxx=" (empty string). The list of enabled and disabled options for a
@@ -309,7 +310,7 @@ use_opts = USE_EPOLL USE_KQUEUE USE_NETFILTER                                 \
            USE_CLOSEFROM USE_ZLIB USE_SLZ USE_CPU_AFFINITY USE_TFO USE_NS     \
            USE_DL USE_RT USE_DEVICEATLAS USE_51DEGREES USE_WURFL USE_SYSTEMD  \
            USE_OBSOLETE_LINKER USE_PRCTL USE_THREAD_DUMP USE_EVPORTS USE_OT   \
-           USE_QUIC USE_PROMEX
+           USE_QUIC USE_PROMEX USE_MEMORY_PROFILING
 
 #### Target system options
 # Depending on the target platform, some options are set, as well as some