diff options
author | Luca Boccassi <bluca@debian.org> | 2023-01-26 13:28:15 +0000 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-02-23 18:59:06 +0000 |
commit | f50535afada5628eb4212729476b1dc1f2079c88 (patch) | |
tree | e5b0765be04edd8497e01284c16d4009005f0e90 /src/analyze/analyze.h | |
parent | fb22861da1866f7fd47c5d9c3744d527a44e2e06 (diff) | |
download | systemd-f50535afada5628eb4212729476b1dc1f2079c88.tar.gz |
analyze: add 'malloc' verb to dump malloc_info()
Gets the memory state of the manager:
root@image:~# systemd-analyze malloc
<malloc version=1>
<heap nr=0>
<sizes>
<size from=33 to=33 total=396 count=12/>
<unsorted from=20385 to=20385 total=20385 count=1/>
</sizes>
<total type=fast count=0 size=0/>
<total type=rest count=14 size=36589/>
<system type=current size=1691648/>
<system type=max size=1839104/>
<aspace type=total size=1691648/>
<aspace type=mprotect size=1691648/>
</heap>
<total type=fast count=0 size=0/>
<total type=rest count=14 size=36589/>
<total type=mmap count=0 size=0/>
<system type=current size=1691648/>
<system type=max size=1839104/>
<aspace type=total size=1691648/>
<aspace type=mprotect size=1691648/>
</malloc>
Diffstat (limited to 'src/analyze/analyze.h')
-rw-r--r-- | src/analyze/analyze.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze/analyze.h b/src/analyze/analyze.h index e4af7b47e0..35b1cddb38 100644 --- a/src/analyze/analyze.h +++ b/src/analyze/analyze.h @@ -44,3 +44,5 @@ int acquire_bus(sd_bus **bus, bool *use_full_bus); int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv); void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan); + +int dump_fd_reply(sd_bus_message *message); |