commit | d9add3acc815f56408a4c8ba0c45baf42745f718 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Apr 25 08:57:41 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 25 17:26:19 2019 +0200 |
tree | 270bcc651362e7b13b4089279ff164e2cb4fcdb2 | |
parent | d636675137d7d7d81a7317dbd3a3bccacf367818 [diff] |
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.