From f541871f5df5d711df6fd13830496f86d72439ce Mon Sep 17 00:00:00 2001 From: Yinan Zhang Date: Fri, 19 Jun 2020 12:21:17 -0700 Subject: [PATCH] Reduce prof dump buffer size in debug build --- include/jemalloc/internal/prof_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/jemalloc/internal/prof_types.h b/include/jemalloc/internal/prof_types.h index 98750f3c..dbd758fa 100644 --- a/include/jemalloc/internal/prof_types.h +++ b/include/jemalloc/internal/prof_types.h @@ -32,6 +32,9 @@ typedef struct prof_recent_s prof_recent_t; #ifndef JEMALLOC_PROF /* Minimize memory bloat for non-prof builds. */ # define PROF_DUMP_BUFSIZE 1 +#elif defined(JEMALLOC_DEBUG) +/* Use a small buffer size in debug build, mainly to facilitate testing. */ +# define PROF_DUMP_BUFSIZE 16 #else # define PROF_DUMP_BUFSIZE 65536 #endif