]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity: make "show profiling" also dump the memoery usage
authorWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 16:07:02 +0000 (18:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 May 2021 17:09:19 +0000 (19:09 +0200)
commit993d44d234dceac940a22790aa45285a5c97bb87
tree97a5a4dba488235c081c3989e11a769ee3e8ef76
parent42712cb6d4d36e2877dbbbf779547bbbbecbcaad
MINOR: activity: make "show profiling" also dump the memoery usage

Now the memory usage stats are dumped. They are first sorted by total
alloc+free so that the first ones are always the most relevant, and
that most symmetric alloc/free pairs appear next to each other. This
way it becomes convenient to only show a small part of them such as:

    show profiling memory 20

It's worth noting that the sorting is performed upon each call to the
iohandler so it is technically possible that an entry could appear
twice or be dropped if the ordering changes between two calls. In
practice it is not an issue but it's worth being mentioned.
src/activity.c