add jemallctl base; add trim to interface w/ console cmd
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
80832cb0bb
commit
7a8ca8842a
6 changed files with 144 additions and 6 deletions
|
@ -923,3 +923,12 @@ pub(super) async fn database_stats(
|
|||
|
||||
Ok(RoomMessageEventContent::notice_markdown(out))
|
||||
}
|
||||
|
||||
#[admin_command]
|
||||
pub(super) async fn trim_memory(&self) -> Result<RoomMessageEventContent> {
|
||||
conduwuit::alloc::trim()?;
|
||||
|
||||
writeln!(self, "done").await?;
|
||||
|
||||
Ok(RoomMessageEventContent::notice_plain(""))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue