mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
feat: add INFO memory section for squashing replies memory consuming (#4147)
* feat: add INFO memory section for squashing replies memory consuming * refactor: address comments
This commit is contained in:
parent
5e2b48c3f3
commit
e16ef838e4
3 changed files with 46 additions and 0 deletions
|
@ -50,6 +50,7 @@ extern "C" {
|
|||
#include "server/journal/journal.h"
|
||||
#include "server/main_service.h"
|
||||
#include "server/memory_cmd.h"
|
||||
#include "server/multi_command_squasher.h"
|
||||
#include "server/protocol_client.h"
|
||||
#include "server/rdb_load.h"
|
||||
#include "server/rdb_save.h"
|
||||
|
@ -2314,6 +2315,7 @@ void ServerFamily::Info(CmdArgList args, Transaction* tx, SinkReplyBuilder* buil
|
|||
append("client_read_buffer_peak_bytes", m.peak_stats.conn_read_buf_capacity);
|
||||
append("tls_bytes", m.tls_bytes);
|
||||
append("snapshot_serialization_bytes", m.serialization_bytes);
|
||||
append("commands_squashing_replies_bytes", MultiCommandSquasher::GetRepliesMemSize());
|
||||
|
||||
if (GetFlag(FLAGS_cache_mode)) {
|
||||
append("cache_mode", "cache");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue