]> git.ipfire.org Git - thirdparty/systemd.git/commit
analyze: add 'malloc' verb to dump malloc_info() 26217/head
authorLuca Boccassi <bluca@debian.org>
Thu, 26 Jan 2023 13:28:15 +0000 (13:28 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 23 Feb 2023 18:59:06 +0000 (18:59 +0000)
commitf50535afada5628eb4212729476b1dc1f2079c88
treee5b0765be04edd8497e01284c16d4009005f0e90
parentfb22861da1866f7fd47c5d9c3744d527a44e2e06
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>
man/systemd-analyze.xml
src/analyze/analyze-dump.c
src/analyze/analyze-malloc.c [new file with mode: 0644]
src/analyze/analyze-malloc.h [new file with mode: 0644]
src/analyze/analyze.c
src/analyze/analyze.h
src/analyze/meson.build
test/units/testsuite-65.sh