]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: counters: make COUNT_IF() only appear at DEBUG_COUNTERS>=1
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2025 15:46:18 +0000 (17:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Apr 2025 17:02:13 +0000 (19:02 +0200)
commita142adaba017cfedd498f715a9b9c4d73137fefa
tree630fb57e2ee8e5d7abba95c46a24919636705902
parent61d633a3ac821ee81bc2089b981508162be816ea
DEBUG: counters: make COUNT_IF() only appear at DEBUG_COUNTERS>=1

COUNT_IF() is convenient but can be heavy since some of them were found
to trigger often (roughly 1 counter per request on avg). This might even
have an impact on large setups due to the cost of a shared cache line
bouncing between multiple cores. For now there's no way to disable it,
so let's only enable it when DEBUG_COUNTERS is 1 or above. A future
change will make it configurable.
Makefile
include/haproxy/bug.h