]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity: make the profiling status per thread and not global
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 06:57:41 +0000 (08:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 15:26:19 +0000 (17:26 +0200)
commitd9add3acc815f56408a4c8ba0c45baf42745f718
tree270bcc651362e7b13b4089279ff164e2cb4fcdb2
parentd636675137d7d7d81a7317dbd3a3bccacf367818
MINOR: activity: make the profiling status per thread and not global

In order to later support automatic profiling turn on/off, we need to
have it per-thread. We're keeping the global option to know whether to
turn it or on off, but the profiling status is now set per thread. We're
updating the status in activity_count_runtime() which is called before
entering poll(). The reason is that we'll extend this with run time
measurement when deciding to automatically turn it on or off.
include/proto/activity.h
src/activity.c
src/task.c