]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] rspamadm: add memstat command and pretty-printer 6016/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 May 2026 14:28:14 +0000 (15:28 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 May 2026 14:28:14 +0000 (15:28 +0100)
commit61825c20070776424422d4bb762e13feaa86e3b7
treeb288f6f494344d3d8af1d10c951820719dd1ff7a
parentd18547ea21121ebec9b94160f68ab034d92ae965
[Feature] rspamadm: add memstat command and pretty-printer

Add the memstat (alias mem_stat) subcommand to rspamadm control: the
help text gains a new entry, the command name maps to /memstat, and
the response is fed through lualib/rspamadm/memstat.lua for table
output. The Lua module supports --top, --no-callsites, --no-jemalloc
and -n (raw numbers); JSON / compact JSON modes still bypass the
formatter as for other commands.
lualib/rspamadm/memstat.lua [new file with mode: 0644]
src/rspamadm/control.c