MINOR: activity: add a line reporting the average CPU usage to "show activity"
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Apr 2023 13:26:24 +0000 (15:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Apr 2023 06:42:52 +0000 (08:42 +0200)
commit28f2a590f63a2a051fe8cfc64b74dfa06c9e7f32
tree795045cff8f52b1ef2e255d6c8d38d86c8a6df6b
parent6fd2576d5ebbe90039cc918d01d0f62970f7cd67
MINOR: activity: add a line reporting the average CPU usage to "show activity"

It was missing from the output but is sometimes convenient to observe
and understand how incoming connections are distributed. The CPU usage
is reported as the instant measurement of 100-idle_pct for each thread,
and the average value is shown for the aggregated value.

This could be backported as it's helpful in certain troublehsooting
sessions.
src/activity.c