]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks/activity: collect per-task statistics when profiling is enabled
authorWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2021 23:07:40 +0000 (00:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:10:33 +0000 (12:10 +0100)
commit4e2282f9bf3dcd3c04bc33fa817daa2b41a14973
tree4032206c857649e48d89b4624e064ef01dbf3880
parent3fb6a7b46ea663c0cbece30b7979de1fc9a2b692
MEDIUM: tasks/activity: collect per-task statistics when profiling is enabled

Now when the profiling is enabled, the scheduler wlil update per-function
task-level statistics on number of calls, cpu usage and lateny, that could
later be checked using "show profiling". This will immediately make it
obvious what functions are responsible for others' high latencies or which
ones are suffering from others, and should help spot issues like undesired
wakeups. For now the stats are only collected but not reported (though they
are readable from sched_activity[] under gdb).
src/task.c