Available since: 4.0.0
Time complexity: Depends on how much memory is allocated, could be slow
MEMORY MALLOC-STATS command provides an internal statistics report from
the memory allocator.
This command is currently implemented only when using jemalloc as an allocator, and evaluates to a benign NOOP for all others.
Bulk string reply: the memory allocator's internal statistics report