From fe1c096b1849b633f41f69f432c4236428035950 Mon Sep 17 00:00:00 2001 From: guybe7 Date: Sun, 17 Apr 2022 07:31:57 +0200 Subject: Add RM_MallocSizeString, RM_MallocSizeDict (#10542) Add APIs to allow modules to compute the memory consumption of opaque objects owned by redis. Without these, the mem_usage callbacks of module data types are useless in many cases. Other changes: Fix streamRadixTreeMemoryUsage to include the size of the rax structure itself --- runtest-moduleapi | 1 + 1 file changed, 1 insertion(+) (limited to 'runtest-moduleapi') diff --git a/runtest-moduleapi b/runtest-moduleapi index 38c0d5434..81af306e5 100755 --- a/runtest-moduleapi +++ b/runtest-moduleapi @@ -40,6 +40,7 @@ $TCLSH tests/test_helper.tcl \ --single unit/moduleapi/zset \ --single unit/moduleapi/list \ --single unit/moduleapi/stream \ +--single unit/moduleapi/mallocsize \ --single unit/moduleapi/datatype2 \ --single unit/moduleapi/cluster \ --single unit/moduleapi/aclcheck \ -- cgit v1.2.1