]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/dbus.c
manager: add GetMallocInfo() hidden/debug method
authorLuca Boccassi <bluca@debian.org>
Thu, 26 Jan 2023 12:51:55 +0000 (12:51 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 23 Feb 2023 13:26:52 +0000 (13:26 +0000)
commitfb22861da1866f7fd47c5d9c3744d527a44e2e06
tree7895b3367ba08b0d2f69188de12338bdf19324d4
parent500ecfd5130159b3b48b34e571b0c0220247bd78
manager: add GetMallocInfo() hidden/debug method

Return the output of malloc_info() via a file descriptor (in case it
gets large on a busy system). Useful to get live data about memory
usage when it is not possible to run under a profiler from the get-go.
Do not formally register the method, but add a 'hidden' interface
so that it cannot be seen by introspection or by looking at the
object.
src/core/dbus.c
src/shared/bus-util.c
src/shared/bus-util.h