Reduce prof dump buffer size in debug build

This commit is contained in:
Yinan Zhang 2020-06-19 12:21:17 -07:00
parent 354183b10d
commit f541871f5d

View File

@ -32,6 +32,9 @@ typedef struct prof_recent_s prof_recent_t;
#ifndef JEMALLOC_PROF #ifndef JEMALLOC_PROF
/* Minimize memory bloat for non-prof builds. */ /* Minimize memory bloat for non-prof builds. */
# define PROF_DUMP_BUFSIZE 1 # 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 #else
# define PROF_DUMP_BUFSIZE 65536 # define PROF_DUMP_BUFSIZE 65536
#endif #endif