MINOR: activity: report profiling duration and age in "show profiling"
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Nov 2023 10:44:48 +0000 (11:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Nov 2023 10:46:37 +0000 (11:46 +0100)
commita63e016d272ac5e8127a7a8f0d737e19fc6eac74
tree689161bf71abff996c5720f93d4f460317397735
parentaf7db3a43c9bd57e837ddb68fa046cdda6c56e0a
MINOR: activity: report profiling duration and age in "show profiling"

Seeing counters in "show profiling" is not always very helpful without
an indication of how long the analysis lasted nor if it's still active
or not. Let's add a pair of start/stop timers for tasks and memory so
that we can now indicate how long the measurements lasted and when they
ended (or 0 if still running).

Note that for tasks profiling set to "auto", the measurement is considered
enabled since it can automatically switch on and off on a per-thread
basis.
src/activity.c