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-malloc.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-malloc.h')
-rw-r--r-- | src/analyze/analyze-malloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analyze/analyze-malloc.h b/src/analyze/analyze-malloc.h new file mode 100644 index 0000000000..d3feabd757 --- /dev/null +++ b/src/analyze/analyze-malloc.h @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ + +#pragma once + +int verb_malloc(int argc, char *argv[], void *userdata); |